View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.programming
Rick Rothstein \(MVP - VB\)[_2403_] Rick Rothstein \(MVP - VB\)[_2403_] is offline
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