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

I have a userform and on the first page I have a text box that I want to show
Now() or Date(). When form is opened date will be visible. Currently the
text box does not show the date when you open it. The bottom part of the
form has a tab control with several tabs The tabs have text boxes and all is
visible. Can someone please tell me why this is happening? Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default UserForm Question

Check whethe you have placed your code in the right area. Right click the
user form icon from the left treeviewView code and paste the below code..

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

If this post helps click Yes
---------------
Jacob Skaria


"TotallyConfused" wrote:

I have a userform and on the first page I have a text box that I want to show
Now() or Date(). When form is opened date will be visible. Currently the
text box does not show the date when you open it. The bottom part of the
form has a tab control with several tabs The tabs have text boxes and all is
visible. Can someone please tell me why this is happening? Thank you.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 144
Default UserForm Question

Thank you very much. This was very helpful. Have a great day!

"Jacob Skaria" wrote:

Check whethe you have placed your code in the right area. Right click the
user form icon from the left treeviewView code and paste the below code..

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

If this post helps click Yes
---------------
Jacob Skaria


"TotallyConfused" wrote:

I have a userform and on the first page I have a text box that I want to show
Now() or Date(). When form is opened date will be visible. Currently the
text box does not show the date when you open it. The bottom part of the
form has a tab control with several tabs The tabs have text boxes and all is
visible. Can someone please tell me why this is happening? 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
Userform question Anthony Excel Worksheet Functions 4 June 27th 08 04:26 PM
UserForm Question Barb Reinhardt Excel Programming 2 January 20th 06 07:09 PM
Userform question Greg[_18_] Excel Programming 2 May 28th 05 11:17 AM
UserForm Question bforster1[_25_] Excel Programming 1 November 6th 04 01:21 PM
userform question David Goodall Excel Programming 0 August 25th 03 07:10 PM


All times are GMT +1. The time now is 10:31 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"