Call macro from another macro and return to first macro at a specifik label

Author Message
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)
0
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
 
 
#1
    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)
    0
    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.
    "... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
    Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
    http://www.visualbasicscript.com/m_47117/tm.htm
     
    #2
      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)
      0
      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.
      "... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
      Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
      http://www.visualbasicscript.com/m_47117/tm.htm
       
      #3

        Online Bookmarks Sharing: Share/Bookmark

        Jump to:

        Current active users

        There are 0 members and 1 guests.

        Icon Legend and Permission

        • New Messages
        • No New Messages
        • Hot Topic w/ New Messages
        • Hot Topic w/o New Messages
        • Locked w/ New Messages
        • Locked w/o New Messages
        • Read Message
        • Post New Thread
        • Reply to message
        • Post New Poll
        • Submit Vote
        • Post reward post
        • Delete my own posts
        • Delete my own threads
        • Rate post

        2000-2012 ASPPlayground.NET Forum Version 3.9