Consulting

Results 1 to 2 of 2

Thread: Hide User Forms

  1. #1
    VBAX Master
    Joined
    Jun 2006
    Posts
    1,091
    Location

    Hide User Forms

    I use the

    [VBA]Forms.hide[/VBA]

    all the time to hide a User form before another form opens up. However, the user form doesn't dissapear until the full macro runs. How can I get the Form to disappear before the next one loads up.

  2. #2
    Site Admin
    Jedi Master
    VBAX Guru Jacob Hilderbrand's Avatar
    Joined
    Jun 2004
    Location
    Roseville, CA
    Posts
    3,712
    Location
    Note that you are just hiding it and if you don't need it anymore you should Unload it.

    [VBA]
    Unload UserForm1
    [/VBA]

    Aside from that, just add DoEvents after your hide row to allow it to hide dissapear.

    [VBA]
    Forms.Hide
    DoEvents
    [/VBA]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •