PC Review


Reply
Thread Tools Rate Thread

Dates in Excel

 
 
don H. Lee
Guest
Posts: n/a
 
      3rd Dec 2008
Hi Newsgroup

I have a big problem handling dates in excel or formatting them the right
way.

Using VBA there is no Problem but when I using formatted fields the trouble
begins.

My tool is used in several languages (german, french, italian) and when I
use localized formatting of date fields like "DD.MM.JJJJ" (for german) and
using this on french system i receive an error.

Now I made a work around and replacing (Text-replace in VBA) the formatting
with the localized format, but this isn't very nice.

Any idea how to handle this?

Thanks alot

D. H. Lee


 
Reply With Quote
 
 
 
 
Niek Otten
Guest
Posts: n/a
 
      3rd Dec 2008
You don't tell how you use the format.
Is it in a TEXT() function in the worksheet? Are you entering a formula in
the worksheet through VBA?
Anyway, use the Locale option in the Formatting dialog. If you record a
macro while doing it, you can see how to do it from VBA as well.
With a literal, so a format string between qotes, you'll never get automatic
translation between languages.

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"don H. Lee" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi Newsgroup
>
> I have a big problem handling dates in excel or formatting them the right
> way.
>
> Using VBA there is no Problem but when I using formatted fields the
> trouble begins.
>
> My tool is used in several languages (german, french, italian) and when I
> use localized formatting of date fields like "DD.MM.JJJJ" (for german) and
> using this on french system i receive an error.
>
> Now I made a work around and replacing (Text-replace in VBA) the
> formatting with the localized format, but this isn't very nice.
>
> Any idea how to handle this?
>
> Thanks alot
>
> D. H. Lee
>
>


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Dates to Access Dates (Julian) Michael Kintner Microsoft Access 3 28th Sep 2005 02:01 PM
How do I get the dates on an excel chart to stay as dates instead. =?Utf-8?B?UmFuaQ==?= Microsoft Excel Charting 1 20th Sep 2005 05:56 PM
Excel: counting cells which have dates between specified dates Jacqueline Microsoft Excel Misc 2 11th Aug 2004 12:15 PM
transform text dates into Excel dates =?Utf-8?B?RGFuaWVsIFA=?= Microsoft Excel Misc 3 17th Apr 2004 12:28 AM
How to make Excel treat the dates AS DATES which are taken from a Web Page ? sorabh Microsoft Excel Misc 5 9th Apr 2004 03:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:54 AM.