Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
SU SU is offline
external usenet poster
 
Posts: 25
Default Automatically close Userform

I have an userform that I would like to show and be visible for 5 seconds
when opening an Excel file.

I would just like to show the userform for a certain length of time and
would like it to close without any interaction from the user.

Would appreciate all help. Many thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Automatically close Userform

In the workbook_open event activate the userform with something like

userform1.show

then in the userform_activate event paste this code.

Private Sub UserForm_Activate()
PauseTime = 5 ' Set duration in seconds
Start = Timer ' Set start time.
Do While Timer < Start + PauseTime
Loop
Finish = Timer
UserForm1.Hide
End Sub

Mike


"SU" wrote:

I have an userform that I would like to show and be visible for 5 seconds
when opening an Excel file.

I would just like to show the userform for a certain length of time and
would like it to close without any interaction from the user.

Would appreciate all help. Many thanks in advance.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Automatically close Userform

See http://www.xldynamic.com/source/xld.xlFAQ0007.html

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"SU" wrote in message
...
I have an userform that I would like to show and be visible for 5 seconds
when opening an Excel file.

I would just like to show the userform for a certain length of time and
would like it to close without any interaction from the user.

Would appreciate all help. Many thanks in advance.



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
Close automatically a userform FARAZ QURESHI Excel Discussion (Misc queries) 4 January 7th 07 07:46 PM
Automatically close a userform ForSale[_55_] Excel Programming 1 October 2nd 04 12:39 PM
Automatically close a userform ForSale[_54_] Excel Programming 1 October 2nd 04 04:11 AM
Automatically close a userform ForSale[_53_] Excel Programming 1 October 2nd 04 12:47 AM
Close a userform Alvin Hansen[_2_] Excel Programming 1 September 26th 04 12:56 PM


All times are GMT +1. The time now is 01:03 PM.

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

About Us

"It's about Microsoft Excel"