View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips[_6_] Bob Phillips[_6_] is offline
external usenet poster
 
Posts: 11,272
Default assigning variable across macros and modules

Declare them as Public variables, in a standard code module, prior to any
procedures

e.g.

Public rng As Range


Sub test()
....

--

HTH

RP

"Papa Jonah" wrote in message
...
How do I define a variable, such as
dim range as range, or
mytotal = activecell.value *2
so that they can be recalled when other macros or modules are run?

TIA