Hi
First post for me.
I've got a couple of issues with a macro I have running.
The first is when I have the macro converting the xls file into a csv file, the csv file changes the date/time format that was present within the xls file i.e. if today it would save as 14-04-2013 00:00 etc, but the csv file converts it to 14/04/2013 00:00. I really need it to save in the same format. Is this an issue with all csv files?
Secondly, how can I get the macro to save the csv file with todays date i.e. Toga 14-04-2013.csv
Here is a copy of the macro I am running
Sheets("TOGA").Select
Columns("A:C").Select
Selection.Copy
Workbooks.Open Filename:="M:\Site Operations\Control Centre\Toga\Toga.xlsx"
Windows("Toga.xlsx").Activate
ActiveWindow.WindowState = xlNormal
Sheets("Sheet1").Select
Range("A1").Select
ActiveSheet.Paste
ActiveWorkbook.SaveAs Filename:= _
"M:\Site Operations\Control Centre\Toga\Toga.csv", FileFormat:= _
xlCSV, CreateBackup:=False
Any help greatly appreciated as I am stumped!
Cheers
First post for me.
I've got a couple of issues with a macro I have running.
The first is when I have the macro converting the xls file into a csv file, the csv file changes the date/time format that was present within the xls file i.e. if today it would save as 14-04-2013 00:00 etc, but the csv file converts it to 14/04/2013 00:00. I really need it to save in the same format. Is this an issue with all csv files?
Secondly, how can I get the macro to save the csv file with todays date i.e. Toga 14-04-2013.csv
Here is a copy of the macro I am running
Sheets("TOGA").Select
Columns("A:C").Select
Selection.Copy
Workbooks.Open Filename:="M:\Site Operations\Control Centre\Toga\Toga.xlsx"
Windows("Toga.xlsx").Activate
ActiveWindow.WindowState = xlNormal
Sheets("Sheet1").Select
Range("A1").Select
ActiveSheet.Paste
ActiveWorkbook.SaveAs Filename:= _
"M:\Site Operations\Control Centre\Toga\Toga.csv", FileFormat:= _
xlCSV, CreateBackup:=False
Any help greatly appreciated as I am stumped!
Cheers