Create Global Variables in a module

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

Guest

Is it possible to set variables for access to all sub routines and functions within a module?

eg. pathB = ThisWorkbook.Path is refer to this in many sub routines

Bruce
 
Bruce,

Declare the variable outside of a macro, at the start of the module. They
can then be set/read from any procedure in that module.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 

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