I've never seen a VBA "Global" dimension statement like you are trying
to use. I just declare the variable outside of a SUB or FUNCTION to
make it global. For example:
Dim strName As String
Sub DoThis()
strName = Range("A1").Address
DoThat
End Sub
Function DoThat()
MsgBox "Name: " & strName
End Function