How do I init a variable defined in the Options Explicit area?

B

BearMarquez

I defined a variable in the Options Explicit area but I need it set to an
initial value to it. This is in WORD 2007 VBA code.
 
E

Edward Thrashcort

Can't you declare the variable as Public then set it at the beginning of the
first piece of code that runs in your application. eg the autorun macro



Eddie
 

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

Top