+ Reply to Thread
Results 1 to 3 of 3

Macro linking

  1. #1
    vishu
    Guest

    Macro linking

    I have doubt with macro coding.
    I have three macros to run.
    In first step: If user press a macro button it has to run the Macro1, after
    running this, there is one message box will popup asking for Yes or No
    Now question is If user select Ok it should run the macro2 and If user
    select No it should run the macro3.
    Just I want to know how to link the Macro 2 and Macro3 after message box
    message button.
    I hope this make sense.
    Regards,
    Vishu


  2. #2
    Dave O
    Guest

    Re: Macro linking

    One way to do this is to write a "Master" macro that calls Macro1,
    Macro2, and Macro3 according to the logic you describe. Perhaps
    something along the lines of

    Sub Master()
    Ask question 1
    If User say Yes then
    Macro1
    endif

    Ask Question 2
    If User say Yes then
    Macro2
    endif

    Ask Question 3
    If User say Yes then
    Macro1
    endif
    end sub


  3. #3
    vishu
    Guest

    Re: Macro linking

    Hi Dave,
    Should I use "switches" in between macros.
    regards
    vishu

    "Dave O" wrote:

    > One way to do this is to write a "Master" macro that calls Macro1,
    > Macro2, and Macro3 according to the logic you describe. Perhaps
    > something along the lines of
    >
    > Sub Master()
    > Ask question 1
    > If User say Yes then
    > Macro1
    > endif
    >
    > Ask Question 2
    > If User say Yes then
    > Macro2
    > endif
    >
    > Ask Question 3
    > If User say Yes then
    > Macro1
    > endif
    > end sub
    >
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1