APDK85
-
Total Posts
:
1
- Scores: 0
-
Reward points
:
0
- Joined: 12/22/2011
-
Status: offline
|
Call macro from another macro and return to first macro at a specifik label
Thursday, December 22, 2011 10:36 PM
( permalink)
Hi! I'm new to this forum and would like some help with above mentioned issue that I've come across. Perhaps it's doable perhaps not, that's the big question. Should perhaps mention, that I'm using IBM reflection with VB6 module. Sub test1() With Session MsgBox ("PRE-TEST1") 'call next macro Call test2 NextPart: MsgBox ("TEST1") End With End Sub Sub test2() With Session MsgBox ("TEST2") 'return to NextPart label in test1-macro Call test1(NextPart) End With End Sub
|
|
|
|
ebgreen
-
Total Posts
:
8219
- Scores: 98
-
Reward points
:
0
- Joined: 7/12/2005
-
Status: offline
|
Re:Call macro from another macro and return to first macro at a specifik label
Tuesday, December 27, 2011 3:52 AM
( permalink)
This is going to be a scope issue. If the scripting environment allows it then it allows it. Either way the issue is with accessing the controls which is Reflection question not a VBS question.
|
|
|
|
ebgreen
-
Total Posts
:
8219
- Scores: 98
-
Reward points
:
0
- Joined: 7/12/2005
-
Status: offline
|
Re:Call macro from another macro and return to first macro at a specifik label
Tuesday, December 27, 2011 3:53 AM
( permalink)
And just to be clear, VB6 which is what you say you are using is not the same thing as VBScript, and is also not the same thing as VBA which is what I thought reflection used for a macroing language, and is also not the same thing as VB.net just to be complete.
|
|
|
|