Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default userform question

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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 430
Default userform question

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


"Peterke" wrote in message
...
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




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question regarding UserForm TotallyConfused Excel Discussion (Misc queries) 0 September 3rd 09 09:38 PM
userform question Peterke Excel Programming 0 March 25th 06 08:46 PM
userform question Gary Keramidas Excel Programming 1 January 31st 06 08:06 AM
VBA UserForm Question.......Help! Sam Torasco Excel Programming 6 July 19th 04 01:23 PM
Userform Question Tom Ogilvy Excel Programming 4 April 26th 04 09:31 PM


All times are GMT +1. The time now is 07:15 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"