+ Reply to Thread
Results 1 to 6 of 6

UserForm always visible

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    08-04-2005
    Location
    Madrid, Spain
    MS-Off Ver
    2010
    Posts
    241

    UserForm always visible

    I have a UserForm with several buttons in it. I call it with a Code line on opening the relevant sheet.
    But then, when I execute a macro by clicking on its button, often the UserForm disappears at the end of the operation.
    How can I make it ALWAYS VISIBLE, floating on my screen (I don’t want it to be another tool bar).

    Thanks for helping me as efficiently as usual.
    ACA

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Are you sure that the macro does not hide or close the userform? Look for any lines that contain Hide or Unload
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Contributor
    Join Date
    08-04-2005
    Location
    Madrid, Spain
    MS-Off Ver
    2010
    Posts
    241
    Thanks, Roy. Quick as always.
    Well, no; I'm pretty sure the macro does not contain any Hide or Unload instructions.
    ACA

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Can you attach a zipped example workbook with the form?

  5. #5
    Forum Contributor
    Join Date
    08-04-2005
    Location
    Madrid, Spain
    MS-Off Ver
    2010
    Posts
    241
    Thanks, Roy, for insisting in solving my problem.
    As it happens I think I have stumbled upon the solution empirically by trial and error: I notice that my UserForm goes to Hide when the macro executed ends with and END instruction; and it stays visible when the macro is allowed to run up till the closing END SUB.
    I don't know if it is an orthodox practice, but it seems to work fine that way.
    Thanks for your efforts. I suscribe to all the messages of gratitude in the first thread in this forum. I ow you all more than I can say.
    ACA

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    The form isn't hidden, it completely goes away: End resets everything.

    There's usually no reason to use it.

+ 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