How do I set an initial value to a global variable?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have created a Class Module in which I have created a global variable that
is a boolean.

I am able to Dim the variable with no problem.

When I try to initialize it using:

Private boolVar = true

I get an "Expected end of statement" error. How would I set boolVar to true?

Thanks in advance
 
Create an AutoExec macro that calls function named whatever, maybe
initializeValues(), and set the values in there.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top