Please Help...When running a VB macro in Excel the date changes format to USA from UK !!

Hi

Below is the code from a macro I am running in Excel.

The prolem is that once the file is saved the dates are converted into USA format from UK format and this is causing major problems..

Would appreciate any help please...

Sub format()
'
' format Macro
' format for data load
'

'
ActiveWorkbook.Save
ActiveSheet.Unprotect
Rows("1:11").Select
Selection.Delete Shift:=xlUp
Columns("B:B").Select
Selection.ClearContents
ActiveWorkbook.SaveAs Filename:="c:\payroll\Cleaners.csv", _
FileFormat:=6, CreateBackup:=False
ActiveWorkbook.Close Savechanges:=False
End Sub

Thanks

Paddy



Answer this question

Please Help...When running a VB macro in Excel the date changes format to USA from UK !!

  • tribal

    GoodMorning Padmaster,

    In order to recieve optimal help for your question, I am moving this to the VBA forum.

    ...Format the cells of the sheet to the proper format....



  • Please Help...When running a VB macro in Excel the date changes format to USA from UK !!