Exel VBA- userform startup problem

O

officemanager

I would like to have my userform in Exel 2002 startup on top of th
Excel worksheet (like a splash screen) before the worksheet loads.
What code do I use to make this happen and where would the code go?

Thank you
 
T

Tom Ogilvy

I think you will get a flash of the worksheet/workbook regardless of what
you do, but you can make the application.Visible = False while you show the
userform.
 
S

sp00nix

When you open up your VBA editor, view the code for 'ThisWorkbook' an
enter the following:

Private Sub Workbook_Open()
Application.Visible = False 'Hides Excel
UserForm1.Show 'Shows your form
Application.Visible = True 'Shows Excel once form closes
End Su
Code
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top