sam111
12-15-2010, 09:54 AM
I have a Module in VBA. I want to have a few global varibles that I can access where every I am in the word document visual basic editor.
I declared in my module
Public strName As String
But when I try to set or get the value I get a compiler error Object required
How can I fix this? I have tried using the Global keyword what I still cann't get what I want.
Any VBA experts that can answer this.
Thanks
I declared in my module
Public strName As String
But when I try to set or get the value I get a compiler error Object required
How can I fix this? I have tried using the Global keyword what I still cann't get what I want.
Any VBA experts that can answer this.
Thanks