Declaration of public variable - Question

L

Les Stout

Hi, i am sure a simple answer, but if i declare a public variable in the
first or "Start module", does that surfice for the whole project or must
one declare it in each module?

Les Stout
 
T

Tom Ogilvy

a public variable declared in a general module should be visible throughout
the workbook/project. Declaring it anywhere else will hide it in the
location where it is declared again.

(this assumes the module is public, but that is the default).
 

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