#1   Report Post  
Posted to microsoft.public.excel.misc
grahammal
 
Posts: n/a
Default Date Format


I have generated a UserForm and on the form are several TextBoxes.
Part of the function of the UserForm is to copy the contents of a cell
into 1 of the TextBoxes.
The contents of the cell is the date which in the cell is in the
01/11/06 format.
Problem is that when it copies it into the TextBox it ends up in a
11/01/06 format.
How do I change the format of the TextBox??


--
grahammal
------------------------------------------------------------------------
grahammal's Profile: http://www.excelforum.com/member.php...o&userid=20336
View this thread: http://www.excelforum.com/showthread...hreadid=526696

  #2   Report Post  
Posted to microsoft.public.excel.misc
davesexcel
 
Posts: n/a
Default Date Format


I tried to get it do do what you say, but can't
Are you using Control Source in the textbox properties to get the
source?


--
davesexcel
------------------------------------------------------------------------
davesexcel's Profile: http://www.excelforum.com/member.php...o&userid=31708
View this thread: http://www.excelforum.com/showthread...hreadid=526696

  #3   Report Post  
Posted to microsoft.public.excel.misc
grahammal
 
Posts: n/a
Default Date Format


I'm not using the ControlSource in Properties, can you tell me how?
What I am doing is:-
1) On the UserForm which I have made I enter a row number.
2) The program then inserts data read from that row into TextBoxes on
my UserForm.
3) Part of that read data is a Start date & an End date.
4) The start date is read from cell "BY" & the row and enters that into
TextBox15.
The end date is read from cell "CG" and the row and is entered into
TextBox18.
ie Start date in row 36 shows as 30/01/2006 but ends up in the TextBox
as 1/30/06.
How do I control this??


--
grahammal
------------------------------------------------------------------------
grahammal's Profile: http://www.excelforum.com/member.php...o&userid=20336
View this thread: http://www.excelforum.com/showthread...hreadid=526696

  #4   Report Post  
Posted to microsoft.public.excel.misc
davesexcel
 
Posts: n/a
Default Date Format


He,
What I would do is click on the textbox and then go to the properties
windows, scroll down to control source and enter the cell address,
whatever is in that cell will show up in the TextBox


--
davesexcel
------------------------------------------------------------------------
davesexcel's Profile: http://www.excelforum.com/member.php...o&userid=31708
View this thread: http://www.excelforum.com/showthread...hreadid=526696

  #5   Report Post  
Posted to microsoft.public.excel.misc
grahammal
 
Posts: n/a
Default Date Format


I understand where your coming from but although the Column is always
the same, the row is variable. How do I put a variable row into
ControlSource?


--
grahammal
------------------------------------------------------------------------
grahammal's Profile: http://www.excelforum.com/member.php...o&userid=20336
View this thread: http://www.excelforum.com/showthread...hreadid=526696



  #6   Report Post  
Posted to microsoft.public.excel.misc
davesexcel
 
Posts: n/a
Default Date Format


grahammal Wrote:
I'm not using the ControlSource in Properties, can you tell me how?
What I am doing is:-
1) On the UserForm which I have made I enter a row number.
2) The program then inserts data read from that row into TextBoxes on
my UserForm.
3) Part of that read data is a Start date & an End date.
4) The start date is read from cell "BY" & the row and enters that into
TextBox15.
The end date is read from cell "CG" and the row and is entered into
TextBox18.
ie Start date in row 36 shows as 30/01/2006 but ends up in the TextBox
as 1/30/06.
How do I control this??

What's your code that inserts the date into the textbox?


--
davesexcel
------------------------------------------------------------------------
davesexcel's Profile: http://www.excelforum.com/member.php...o&userid=31708
View this thread: http://www.excelforum.com/showthread...hreadid=526696

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
Cell date format doesnt change Jon Excel Worksheet Functions 5 March 7th 06 04:52 PM
Enforcing a date format on a cell/column ProdigalShawne Excel Discussion (Misc queries) 1 February 22nd 06 07:13 PM
Change general format to US date format woodlot4 Excel Discussion (Misc queries) 3 October 11th 05 12:29 AM
Customized Date Format Frustrated Excel Worksheet Functions 5 October 7th 05 11:30 PM
Compare dates (one cell not in date format) craigcsb Excel Discussion (Misc queries) 5 June 28th 05 05:07 PM


All times are GMT +1. The time now is 11:42 PM.

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"