Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Global variable

Status
Not open for further replies.

keenanbr

Programmer
Oct 3, 2001
469
IE
Is there any awy I can make a variable global across different templates. I open a second template from a macro in the first template and i need a variable to be available to both.
 
Hi there,

Here may be some options ...

Store variables in:
Cell(s) of worksheet(s)
An addin (invisible)
Registry
CustomDocumentProperties
Static variables

Post back if you need further assistance.

HTH

Regards,
Zack Barresse

Simplicity is the ultimate sophistication. What is a MS MVP? PODA
- Leonardo da Vinci
 
I managed to achieve it thus;

in the first template i call;

ActiveDocument.SetMemberNumber (lMember)

and in the second template I have the macro;

SetMemberNumber(LmemberNo as long)

Thanks for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top