Declaration of Public variables in User Forms

R

rahul4real

I need to use the value of a specific text box in multiple user forms. I
need to define it as public variables. But where should I define it and
at which event ?
When I define it within the "UserForm_Initialize()" event I get an
error that says 'Invalid attribute within the function' ..

Please Help
Thanks
 
T

TedMi

Public variables need to be defined in the declarations section of a Module,
not in an event procedure.
-TedMi
 

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