Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Save default dtpicker value

I designed Userform1 that has DTPicker1.

In the VBA editor, Properties, DTPicker1, Value is 02/17/07. It is
always this date unless I change it in design mode.

At runtime, if I select the current date for this control, can I
replace 02/17/07 with the current date (or date selected from the
calendar), save the file, so that next time I open the file, the value
will be the prior selected date?

Thanks,
Mike

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Save default dtpicker value

Hi White Horse

One way

You can use a worksheet cell to copy this date in and in this event in the userform

Private Sub UserForm_Initialize()

End Sub

Set the value for the DTPicker1 (cell value)

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"White Horse" wrote in message oups.com...
I designed Userform1 that has DTPicker1.

In the VBA editor, Properties, DTPicker1, Value is 02/17/07. It is
always this date unless I change it in design mode.

At runtime, if I select the current date for this control, can I
replace 02/17/07 with the current date (or date selected from the
calendar), save the file, so that next time I open the file, the value
will be the prior selected date?

Thanks,
Mike

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
Save to a location other than default RMires Excel Discussion (Misc queries) 6 June 4th 09 02:55 PM
DTPicker Syed Haider Ali[_37_] Excel Programming 0 July 11th 06 08:38 PM
default save as johnw Excel Discussion (Misc queries) 6 September 15th 05 08:52 PM
"Save As" default is a .txt file Chesster Excel Discussion (Misc queries) 1 July 25th 05 03:36 PM
Specify a default file name in VB when the Save / Save As command. SMAN Excel Programming 1 September 14th 04 12:23 PM


All times are GMT +1. The time now is 11:18 AM.

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"