jeffreybrown
Well-known Member
- Joined
- Jul 28, 2004
- Messages
- 5,152
If I want to create a constant as global in VBA this will work
Another constant I would like to make global fails with the following error
I'm using Conditional Compilation Arguments, but I can't seem to understand how to change the scope to global.
In the declarations area of any module that uses the conditional compilation if have
but when I can it to
I get the error above.
How can I change the scope to global? Any thoughts?
Code:
Public Const MyPassword As String = "mrc"
Another constant I would like to make global fails with the following error
Code:
Compile error: Expected: indentifier
I'm using Conditional Compilation Arguments, but I can't seem to understand how to change the scope to global.
In the declarations area of any module that uses the conditional compilation if have
Code:
Const #DEBUG_ = False
but when I can it to
Code:
Public #Const DEBUG_ = False
I get the error above.
How can I change the scope to global? Any thoughts?