Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 144
Default Date on UserForm

How can I get a date stamp on a User form when it opens? I tried a textbox
with =Date() and =Now() neither works. Any help will be greatly appreciated.
Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Date on UserForm

You can use this event that run when you open your userform

Private Sub UserForm_Initialize()
Me.TextBox1.Text = Format(Date, "mm-dd-yyyy")
End Sub


--

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


"TotallyConfused" wrote in message
...
How can I get a date stamp on a User form when it opens? I tried a textbox
with =Date() and =Now() neither works. Any help will be greatly appreciated.
Thank you.


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
Another Userform Date Problem Hazel Excel Programming 3 August 13th 07 08:59 PM
Userform Date Paul Brown[_2_] Excel Programming 2 September 21st 05 09:56 PM
Date in userform being saved as general not date which affects sor Michael Malinsky[_3_] Excel Programming 0 July 28th 04 06:58 PM
Date Selection Userform Archie[_2_] Excel Programming 2 April 13th 04 07:05 AM
Userform to select start date and end date Johnny B. Excel Programming 0 November 28th 03 05:56 PM


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