Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Textbox's and Dates the usual conflict

I am sure this is an easy one for a master of vba out
their ?

I am inputting dates in textboxs (within a userform) in
the following format dd\mm\yyyy (UK Standard format).

However when I call it back from the spreadsheet to my
userform it returns mm\dd\yyyy (USA format).

When I check the spreadsheet it is UK format are textboxes
automatically use USA format and if so can I force my
textbox to except my UK format.

Many thanks in anticipation

Marcus
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Textbox's and Dates the usual conflict

ActiveCell.Value = cDate(Textbox1.Text)

Textbox1.Text = ActiveCell.Text

should respect the UK format.

--
Regards,
Tom Ogilvy


"Marcus Walker" wrote in message
...
I am sure this is an easy one for a master of vba out
their ?

I am inputting dates in textboxs (within a userform) in
the following format dd\mm\yyyy (UK Standard format).

However when I call it back from the spreadsheet to my
userform it returns mm\dd\yyyy (USA format).

When I check the spreadsheet it is UK format are textboxes
automatically use USA format and if so can I force my
textbox to except my UK format.

Many thanks in anticipation

Marcus



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
Not your usual password question! Andy Excel Discussion (Misc queries) 6 December 1st 09 03:31 PM
Help with an usual graph Sally Excel Discussion (Misc queries) 1 July 20th 06 02:15 PM
Digits in textbox's Greg B Excel Discussion (Misc queries) 4 September 4th 05 06:23 PM
Page Break View - not the usual question Rose Excel Discussion (Misc queries) 0 March 2nd 05 03:25 PM
Textbox's truncated once printed (Excel 2000) Robert Pemberton Excel Discussion (Misc queries) 2 January 14th 05 02:19 AM


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