Date on UserForm

  • Thread starter Thread starter TotallyConfused
  • Start date Start date
T

TotallyConfused

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.
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top