Re: VBA Excel “Set” question
- From: Kris <witek7205@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 26 Jan 2006 13:16:28 -0600
Tom Ogilvy wrote:
You can't use a public variable in one workbook in another workbook.
You can.
Open first workbook with your variable, open second workbook, go to VBE open Tools/References and add your first workbook to a list of references of the second workbook.
Of course it is problematic when your try to move such combination to another computer, but it works.
Another solution is to have functions which set and return value of such variable and call then using Application.Run
To call function you don't have to reference it. .
- References:
- VBA Excel “Set” question
- From: John Thomas
- VBA Excel “Set” question
- Prev by Date: Re: right click menu, userform show
- Next by Date: Re: runtime error 1004 method range of object global failed
- Previous by thread: Re: VBA Excel =?windows-1252?Q?=93Set=94 question?=
- Next by thread: TIP: How to avoid losing your arguments in a UDF
- Index(es):
Relevant Pages
|