AndrewKent
Well-known Member
- Joined
- Jul 26, 2006
- Messages
- 889
Hi folks,
I know this is probably possible but I do not know how.
I have three macros, lets say, Macro1, Macro2 and (yep, you guessed it), Macro3. Now, Macro1 "calls" Macro2 and Macro3. The problem I am having is that I want to declare a variable within Macro1 that can be used by ALL these macros. So if I said...
...then I want to be able to use ActiveRow within all my other macros that I am calling without having to declare it again in each one.
Does this make any sense?
Cheers,
Andy
I know this is probably possible but I do not know how.
I have three macros, lets say, Macro1, Macro2 and (yep, you guessed it), Macro3. Now, Macro1 "calls" Macro2 and Macro3. The problem I am having is that I want to declare a variable within Macro1 that can be used by ALL these macros. So if I said...
Code:
ActiveRow = Worksheets("Data").Range("A1:" & Range("A65536").End(xlUp).Offset(1, 0).Row & "").Row
...then I want to be able to use ActiveRow within all my other macros that I am calling without having to declare it again in each one.
Does this make any sense?
Cheers,
Andy