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

Hi
I have set up a userform calendar. To enter a date in a cell, all I have to
do is click on a day of the month in the calendar. It automatically enters
the date in the previously selected cell. How can I get the userform to
close as soon as I click on a day in the userform calendar. It would be nice
not to have to click the closeit X to close the userform. I have many dates
to enter in a column and it would save a lot of time if it closed as soon as
I clicked on a day. Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default closing userform automatically

Hi jim

After the code that insert the date in the cell
Add this

Unload Me

See also
http://www.rondebruin.nl/calendar.htm


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Jim Brass" wrote in message ...
Hi
I have set up a userform calendar. To enter a date in a cell, all I have to do is click on a day of the month in the calendar. It
automatically enters the date in the previously selected cell. How can I get the userform to close as soon as I click on a day in
the userform calendar. It would be nice not to have to click the closeit X to close the userform. I have many dates to enter in a
column and it would save a lot of time if it closed as soon as I clicked on a day. Thanks



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
Userform won't show after closing another file Gerry O Excel Discussion (Misc queries) 8 September 7th 07 03:51 PM
closing a userform mangesh_yadav[_50_] Excel Programming 5 August 31st 04 02:26 PM
Vba - automaticaly closing userform ajliaks[_30_] Excel Programming 1 August 22nd 04 09:53 AM
userform titlebar and closing form D.S.[_3_] Excel Programming 6 November 29th 03 06:26 PM
Help with closing a UserForm Ron de Bruin Excel Programming 0 August 8th 03 01:52 PM


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