Declaration of public variable - Question

  • Thread starter Thread starter Les Stout
  • Start date Start date
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
 
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).
 
Back
Top