LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Check for NumberFormat = DateFormat

' ===== the next line depends on the local language settings,
' ===== so there might be some work to be done

DateIn = Replace(DateIn, "mmmm", "January")


See if using this line instead makes it work more universally....

DateIn = Replace(DateIn, "mmmm", MonthName(1))

And in the next ElseIf block, replace this...

DateIn = Replace(DateIn, "mmm", "Jan")


with this...

DateIn = Replace(DateIn, "mmm", MonthName(1, True))

Rick
 
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
Dateformat Kjeldc Excel Programming 8 July 14th 09 09:43 PM
Convert UK DateFormat to US Goofy Excel Programming 0 October 24th 06 01:54 PM
VBA Excel Chart DateFormat Language Settings Locale Marabu Excel Programming 2 January 9th 06 11:16 AM
VBA NumberFormat Digit Excel Programming 1 January 30th 05 02:30 PM
DateFormat (dd-mmm-yyyy) (dd-mmm-jjjj) Problem. Venkatachalam Excel Programming 7 November 29th 04 10:36 AM


All times are GMT +1. The time now is 02:22 AM.

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"