Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ben Ben is offline
external usenet poster
 
Posts: 509
Default how to make a form self disappear

Hi all,

I am using Excel 2002. I would like to display a form when a worksheet is
activated. But after a few seconds have elapsed, I would like the form to
unload itself. Can you please share with how I can accomplish this? Thanks.

Ben


--

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default how to make a form self disappear

In the form's code module, use

Private Sub UserForm_Initialize()
Application.OnTime Now + TimeSerial(0, 0, 5), "HideForm", ,
True
End Sub

Change the '5' to the number of seconds you want to display the
form.

In a standard code module,

Sub HideForm()
UserForm1.Hide
End Sub


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Ben" wrote in message
...
Hi all,

I am using Excel 2002. I would like to display a form when a
worksheet is
activated. But after a few seconds have elapsed, I would like
the form to
unload itself. Can you please share with how I can accomplish
this? Thanks.

Ben


--



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
How do I make it disappear? Ralphael1 New Users to Excel 1 October 12th 05 12:19 AM
Controls on form disappear jashburn13 Excel Programming 0 June 27th 05 07:36 AM
Controls on form disappear jashburn13 Excel Programming 0 June 22nd 05 10:27 PM
Form does not disappear George[_26_] Excel Programming 2 March 5th 05 04:04 PM
Form Doesn't Disappear Stratuser Excel Programming 2 October 13th 04 10:39 PM


All times are GMT +1. The time now is 08:12 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"