+ Reply to Thread
Results 1 to 4 of 4

End All Macros - But Keep Userform Active

  1. #1
    Forum Contributor
    Join Date
    12-19-2011
    Location
    Central Europe
    MS-Off Ver
    Excel O365
    Posts
    361

    End All Macros - But Keep Userform Active

    Hi all

    I have following piece of code in a lengthy macto

    Please Login or Register  to view this content.
    This ends all macros, as intended. However. I would like to keep the userform open, as well as the data entered to remain the same.
    Is there a way to end all macros, but keep the userform open and active?

    Thanks
    FD
    Last edited by FallingDown; 10-09-2017 at 05:00 AM. Reason: Solved

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: End All Macros - But Keep Userform Active

    Hi,

    Briefly, no. What macros do you actually need to stop? In general, using End on its own is bad practice.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,299

    Re: End All Macros - But Keep Userform Active

    Hi FallingDown

    Surely Adding a message and EXIT SUB code prior to ending IF Function will suffice....
    Edit...
    Upload a sample of your workbook and I am sure that someone will come up with a solution...
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  4. #4
    Forum Contributor
    Join Date
    12-19-2011
    Location
    Central Europe
    MS-Off Ver
    Excel O365
    Posts
    361

    Re: End All Macros - But Keep Userform Active

    Hi xlnitwit

    Bascially the macro starts with the user entering details in a userform.
    When he/she clicks "save" (command button) 4 subsequent macros run, each dependant on the previous, reading information generated from running the macro.
    The macro is interfaced with other applications, thus requiring a password input, which is verified based on the other applications feedback. Initially I wanted the macro to end and have the user execute the command button again.

    However, upon reading your post, I thought I should quit the second application (to ensure start-up is in the right position), and use a GoTo command, having the code reopen the app.

    Thanks anyway

    FD

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. VBA/Macros to Control Active Cell
    By 914Fan in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-27-2016, 03:12 PM
  2. Replies: 0
    Last Post: 06-09-2015, 09:30 PM
  3. [SOLVED] macros run only on active sheets
    By nikos325 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-30-2013, 09:24 AM
  4. open Excel with Macros active from windows schedule
    By bagullo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-05-2011, 03:44 AM
  5. force macros to be active on file open event
    By Gabor in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-12-2007, 04:57 PM
  6. UserForm Active
    By grahammal in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-03-2006, 12:29 PM
  7. Replies: 2
    Last Post: 01-20-2006, 11:00 AM

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