userform textbox returns changeable date

  • Thread starter Thread starter Taja
  • Start date Start date
T

Taja

I'm trying to get a userform textbox to show the current date when the form is loaded. However, the user still has to be able to edit it to a different date if they need to.
 
I'm trying to get a userform textbox to show the current date when
the form is loaded. However, the user still has to be able to edit it
to a different date if they need to.

Sooo.., what's your question?

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion
 
Is there some mode that the userform textbox needs to be in for the user to be able to change it even if there is already a date in the textbox?
 
Is there some mode that the userform textbox needs to be in for the
user to be able to change it even if there is already a date in the
textbox?

Obviously.., you haven't run your userform have you? A textbox is a
user input control and so doesn't need any special treatment to be used
as such.

Run the userform! Try it out!

Sub Userform_Initialize()
Me.TextBox1.Text = Date 'today's date
End Sub

When it displays, change the textbox contents however you like!

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion
 
Back
Top