userform textbox returns changeable 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.
 
G

GS

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
 
T

Taja

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?
 
G

GS

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
 

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

Top