View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] shumwaymeister@gmail.com is offline
external usenet poster
 
Posts: 14
Default Global Variables in Excel VBA

I have an excel program, heavily driven by menus and buttons with
various entry-points and exits.

I am however attempting to create a global variable that could be used
to store and access data, regardless of the entry/exit point used.

Use of the public command would create a global variable which would to
this. However, given the fact that a user may come in at any point
(depending on what button or menu they use), there is no obvious way to
create a global variable.

Is there a way to actually create a global variable - that could be
used regardless of what a user presses?