Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default userform textbox returns changeable date

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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,514
Default userform textbox returns changeable date

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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default userform textbox returns changeable date

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?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,514
Default userform textbox returns changeable date

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


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default userform textbox returns changeable date

You're right. Sorry, bit of an amateur here.

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
Date Format for Userform TextBox John Calder New Users to Excel 4 July 29th 09 10:19 PM
date entry in userform textbox tkraju via OfficeKB.com Excel Programming 7 June 9th 08 08:30 AM
Qn: Date Format in TextBox in UserForm? Michael Vaughan Excel Programming 1 August 23rd 04 10:03 AM
Date Calculation in UserForm TextBox John Pierce Excel Programming 2 February 28th 04 12:11 AM
Userform Textbox - Date Problem universal[_6_] Excel Programming 2 November 26th 03 04:31 PM


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