Ryan Pigeon Member Feb 23, 2024 #1 If I declare this ThisIsAPublicVariable in Starter: Sub Process_Globals 'These global variables will be declared once when the application starts. 'These variables can be accessed from all modules. Public ThisIsAPublicVariable As String End Sub Is says undeclared variable in Main. Why is this?
If I declare this ThisIsAPublicVariable in Starter: Sub Process_Globals 'These global variables will be declared once when the application starts. 'These variables can be accessed from all modules. Public ThisIsAPublicVariable As String End Sub Is says undeclared variable in Main. Why is this?
W walt61 Active Member Licensed User Longtime User Feb 24, 2024 #2 In Main, refer to it as 'Starter.ThisIsAPublicVariable' (qualify it with the module name, 'Starter'). Upvote 2
In Main, refer to it as 'Starter.ThisIsAPublicVariable' (qualify it with the module name, 'Starter').