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

I have a worksheet with dates in the format of dd-mm-yyyy.
This is the correct way for the date to be shown.
Now if I load that date into a userform using a textbox it shows up i
mm-dd-yyyy.
How do I change that to be shown in the correct way?
All I can read out of Excel 2000 VBA programmers reference, is that
"Trying to make your VBA code compatible with dates in all languag
versions of Excel is very difficult. See the chapter on programmin
with international clients for more details.."..

Biiiiiig help.. since the International client chapter doesnt give muc
of a hint on how to do this :)
So now I am trying you.. thx on beforehand.

Rune Dau

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Date formatting

Rune,

Try using the Range Text property instead of value, like so

TextBox1.Text = Range("A20").Text

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Rune_Daub " wrote in message
...
I have a worksheet with dates in the format of dd-mm-yyyy.
This is the correct way for the date to be shown.
Now if I load that date into a userform using a textbox it shows up in
mm-dd-yyyy.
How do I change that to be shown in the correct way?
All I can read out of Excel 2000 VBA programmers reference, is that
"Trying to make your VBA code compatible with dates in all language
versions of Excel is very difficult. See the chapter on programming
with international clients for more details.."..

Biiiiiig help.. since the International client chapter doesnt give much
of a hint on how to do this :)
So now I am trying you.. thx on beforehand.

Rune Daub


---
Message posted from http://www.ExcelForum.com/



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
conditional formatting for cell date to equal today's date Sistereinstein Excel Worksheet Functions 2 September 10th 12 07:53 PM
Date Formatting DaveMoore Excel Worksheet Functions 2 March 24th 10 05:41 PM
date formatting vandy Excel Discussion (Misc queries) 1 March 22nd 10 04:21 PM
Date formatting Liesl Excel Discussion (Misc queries) 1 March 28th 06 06:56 AM
Date Formatting Big Rick Excel Discussion (Misc queries) 34 January 11th 06 10:02 PM


All times are GMT +1. The time now is 12:56 PM.

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"