vba

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » VBA

VBA

resolvedResolved · Low Priority · Version 2003

Dan has attended:
Excel VBA Intro Intermediate course

VBA

Can public variables be used in other workbooks?

RE: VBA

Dan

When you declare a variable as Public in a module this variable can be seen and shared by any project(workbook) open at the time.

However you should limit the use of these global variables(Sharing variables with other worksheets).

Global variables are very hard to keep track of, and you never know when another routine is using that value without careful tracking, which could take time and effort especially if there is a bug.

Hope this helps

Carlos

 

Training courses

 

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Excel tip:

Removing custom dictionary entries

If you add something to the custom dictionary in Excel you cannot remove it. The way to get around this is to go into word and remove it there.

View all Excel hints and tips


Server loaded in 0.07 secs.