I have a Module with many sub in it. Dim everything over when I'm working in a different sub?
Thanks
I have a Module with many sub in it. Dim everything over when I'm working in a different sub?
Thanks
Public myVar As Long Sub abc() myVar=16 Cal xyz End Sub Sub xyz() Msgbox myVar End SUb
____________________________________________
Nihil simul inventum est et perfectum
Abusus non tollit usum
Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber
how do you do a global variable independent of sub?
thanks
It was in the first line of xld's code:
Public variables are stored at the top of any Module.Public myVar as Long