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

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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default Dates in Excel

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" wrote in message
...
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
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
Linking computer dates (time) to spreadsheet dates that have formu bigisle Excel Worksheet Functions 3 January 3rd 10 08:05 PM
VBA dates versus Excel dates Morten Hvidberg-Knudsen Excel Programming 7 September 15th 08 03:16 AM
Excel not recognizing dates as dates lawson Excel Discussion (Misc queries) 1 June 26th 07 04:39 PM
Toggle a range of Julian dates to Gregorian Dates and Back PSKelligan Excel Programming 4 May 8th 07 05:51 AM
How do I get the dates on an excel chart to stay as dates instead. Rani Charts and Charting in Excel 1 September 20th 05 05:56 PM


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