+ Reply to Thread
Results 1 to 3 of 3

Go back to before macro was run

  1. #1
    Registered User
    Join Date
    03-07-2009
    Location
    Belfast UK
    MS-Off Ver
    Excel 2007
    Posts
    2

    Go back to before macro was run

    I have used a "save as" macro that I found on this forum which I run as the first piece of code inside another macro. It works well but I find that if the user presses the cancel button at the "save as" screen the main macro keeps running. (of course it would). Any ideas how to exit the "save as" macro and the main macro to return to the point before the main macro was started.

    Any help would be appreciated. The "save as" is below.

    Please Login or Register  to view this content.
    Last edited by mudraker; 03-07-2009 at 11:38 PM.

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983

    Re: Go back to before macro was run

    Wellworth

    Welcome to Exceltip forum

    Please take a couple of minutes and read ALL theForum Rules

    Your posting broke rule 3
    I have fixed your posting for you

    If you replace
    Please Login or Register  to view this content.
    with
    Please Login or Register  to view this content.
    The macro's will stop & not just exit back to the calling macro
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  3. #3
    Registered User
    Join Date
    03-07-2009
    Location
    Belfast UK
    MS-Off Ver
    Excel 2007
    Posts
    2

    Smile Re: Go back to before macro was run

    Thank you Mudraker

    As usual a very simple solution.

    Have printed out and shall read all forum rules

    Cheers

    Wellworth

+ 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