Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have created a macro of which part is to convert an incorrect date format,
dots instead of dashes, that works fine on my PC. (using Ctrl H to find and replace . with / in the column) Unfortunately when the macro is run on other machines the date format becomes Americanised. And as such something like 08/05/09 becomes 05/08/09 which messes up other calculations done within the macro. The other machines are set up as Australian so I am assuming the macro somehow loses its local setting control when not being run on the authors machine. Is there some way that I can lock the date format as Australian or as dd/mm/yyyy within the macro? -- |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
If you had your dates in column A then include this line after your macro has done find/replace: columns("A:A").numberformat = "dd/mm/yyyy" "Geoff B" wrote: I have created a macro of which part is to convert an incorrect date format, dots instead of dashes, that works fine on my PC. (using Ctrl H to find and replace . with / in the column) Unfortunately when the macro is run on other machines the date format becomes Americanised. And as such something like 08/05/09 becomes 05/08/09 which messes up other calculations done within the macro. The other machines are set up as Australian so I am assuming the macro somehow loses its local setting control when not being run on the authors machine. Is there some way that I can lock the date format as Australian or as dd/mm/yyyy within the macro? -- |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Message box date format macro help | Excel Worksheet Functions | |||
Message box date format macro help | Excel Worksheet Functions | |||
date format problem using Macro | Excel Discussion (Misc queries) | |||
Fixing a vlookup macro that returns #N/A error | Excel Discussion (Misc queries) | |||
Fixing the date. | New Users to Excel |