+ Reply to Thread
Results 1 to 4 of 4

Hiding/Showing UserForms

  1. #1
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Manchester England
    MS-Off Ver
    Excel 2010
    Posts
    992

    Hiding/Showing UserForms

    The following subroutine :-
    Please Login or Register  to view this content.
    When this is called I get the message "Must close or hide topmost Modal form first" at the line marked ****
    There are no other forms in use.
    I am at a loss as to what to do next to resolve this matter and would welcome some advice.
    John
    Last edited by alansidman; 02-26-2015 at 10:17 AM.

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Hiding/Showing UserForms

    I think it is because you are hiding userform2, all that does is make it "invisible". You might have to use unload for userform2 instead of hide.
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Manchester England
    MS-Off Ver
    Excel 2010
    Posts
    992

    Re: Hiding/Showing UserForms

    Tom,
    Thanks for your help.
    Your idea allowed the code to work but caused some other difficulties down the line. There were controls on the forms that had been enabled and disenabled to help the user. Unfortunately when the forms were unloaded this information was lost and all the controls reverted to their initial condition.
    In the end the problem was solved by turning all the forms non modal.
    John

  4. #4
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Hiding/Showing UserForms

    Sorry about the additional problems, but thanks for the explanation, it was helpful to me, and hopefully to others as well.

+ 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. [SOLVED] Unloading and Showing UserForms problem
    By JRidge in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 11-12-2014, 09:56 AM
  2. userforms not hiding
    By vientito in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-28-2014, 05:37 PM
  3. [SOLVED] Bug evading me in showing multiple userforms
    By zaimor in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-06-2013, 06:06 PM
  4. Runtime errors loading userforms & hiding excel
    By Smurlos in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-10-2010, 09:27 AM
  5. userforms showing and hiding
    By Laurin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-20-2005, 02:10 PM

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