Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Linking computer dates (time) to spreadsheet dates that have formu | Excel Worksheet Functions | |||
VBA dates versus Excel dates | Excel Programming | |||
Excel not recognizing dates as dates | Excel Discussion (Misc queries) | |||
Toggle a range of Julian dates to Gregorian Dates and Back | Excel Programming | |||
How do I get the dates on an excel chart to stay as dates instead. | Charts and Charting in Excel |