+ Reply to Thread
Results 1 to 4 of 4

Exit Schema Macro after condition..

  1. #1
    Registered User
    Join Date
    09-22-2008
    Location
    vienna
    MS-Off Ver
    MS Office 2007
    Posts
    24

    Exit Schema Macro after condition..

    Hi guys,

    How can i exit or close the macro after the condition,

    Please Login or Register  to view this content.
    I dont wanna use Goto Einde because than the macro is still open. I want to close the macro after this code... is it possible?

    Thanks
    Last edited by xmux; 03-26-2009 at 07:53 AM.

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

    Re: Exit Schema Macro after condition..

    The command of End stops all macros

    Please Login or Register  to view this content.
    The command Exit Sub will exit the existing macro returning to a calling macro
    Please Login or Register  to view this content.
    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
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,516

    Re: Exit Schema Macro after condition..

    Hi there,

    Try this:

    Please Login or Register  to view this content.
    Hope this helps - please let me know how you get on.

    Regards,

    Greg M

  4. #4
    Registered User
    Join Date
    09-22-2008
    Location
    vienna
    MS-Off Ver
    MS Office 2007
    Posts
    24

    Re: Exit Schema Macro after condition..

    Hey thanks for the help End command worked pretty well
    Thanks for the explanation!

+ 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