Global vars

N

Nath

Hi.

I have a global variable that holds the file name and path
of a database that i am retrieving data from to return to
excel.

However, without DIM'ing the variable again anywhere in
the modules associated with the spreadsheet. I keep
losing my global variable's value

Any ideas?

TIA

Nath
 
B

Bob Flanagan

Make certain the the global varaible is declared in a regular module, not a
worksheet or a dialog's module.

Bob Flanagan
Macro Systems
Delaware, U.S. 302-234-9857
http://www.add-ins.com
Productivity add-ins and downloadable books on VB macros for Excel
 

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