Question: I'm trying to implement middleware in an express server that sets custom uid/admin headers on the incoming request. This modified request will then be used after the middleware to see if an authenticated user/admin is accessing that particular resource.

To do this for a client, I just grab the token on the Authorization header and feed it into the firebase admin api's verifyIdToken method. If a uid exists, I set the header. For example: 

```
app.use((req, res, next) => {
  /* get rid of headers sent in by malicious users. */
  delete req.headers._uid;
  try {
    const token = req.headers.authorization.split(' ')[1];
    _dps.fb_admin.auth().verifyIdToken(token).then(claims => {
      if (claims.uid) { req.headers._uid = claims.uid; }
      next();
    }).catch(err => next());
  } catch(err) { next(); }
});

```

Two questions:

1) As an admin with a service account on another server, how would I send a request to this server such that this server can determine an admin sent the request?

2) How would I identify the admin on this server?

Answer: 
Jeeped beat me to it. VBA is not strongly typed, so unless you explicitly tell it that the variable you are assigning is an object-type by using 'Set', the value that A takes is, in this case, the contents of the cell instead of the cell itself. 

You don't even need to Dim it, although it is good practice. 

```
Sub remove()
  Set A = Cells(1, 1) 'Need to use Set
  pos = InStr(A, "e")

  'This works just fine now
  A.characters(pos,1).delete'
End Sub

```
You're assigning cells(1, 1).value to A. If you want the range object properties of cells(1, 1) (like 'characters') you need to Set a range-type var to cells(1,1).

```
Sub remove()
  dim A as range
  set A = Cells(1, 1)
  pos = InStr(A.value, "e")
  A.characters(pos,1).delete'   
End Sub

```