userform question

P

Peterke

Hi,

There seems to go something wrong, i've posted this question three times
allready but it does not seem to appear, therefor here it comes again and
hopefully it gets thru.

Here's the code i use:

Private Sub Workbook_Open()
Application.WindowState = xlMinimized
UserForm1.Show
End Sub

And here's the problem:
When the workbook opens it's minimized, so that's ok.
However the userform does not appear on the screen automaticly, i have to
click below to actually show it.

Now the question:
How do i make the userform appear on screen without clicking for it?
Please advise.

Regards,
Peter
 
J

Jim May

Comment out the line - Application.WindowState = xlMinimized

So that it looks like this:

Private Sub Workbook_Open()
' Commented out Application.WindowState = xlMinimized << Or just
remove entirely
UserForm1.Show
End Sub
 

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