Dear Gurus,
I have a very typical problem with Date Format. I run an online report every day, export it into excel and then run it through a tracker. Once I download the file, I need to make some changes. I am planning to automate those tasks and am running into problems tackling the date format.
Downloaded file has 2 columns with Dates as below:
="06/07/2012 00:00:00"
="06/07/2012 00:05:00"
="06/07/2012 00:07:00"
="06/07/2012 00:09:00"
="06/07/2012 00:09:00"
="06/07/2012 00:12:00"
Every day I replace "="" with a blank and then """ with another blank so that the cells will be converted into 6th July - Date format.
But now, when I try to record a Macro and do the same with VBA, the Date and Month are flipped their positions. So instead of being 6th July, it is converted to 7th June, which is absurd.
Troubleshooting:
I tried to find if any thing is wrong with the Date format in Regional settings. But, Nope. It is set to UK Date and Time settings (DD/MM/YYYY).
Sample file:
Please find the sample file uploaded here. Thank you!
https://rapidshare.com/files/1235575107/PalletExport__5_.csv
Thanks in advance,
Regards,
RK.
I have a very typical problem with Date Format. I run an online report every day, export it into excel and then run it through a tracker. Once I download the file, I need to make some changes. I am planning to automate those tasks and am running into problems tackling the date format.
Downloaded file has 2 columns with Dates as below:
="06/07/2012 00:00:00"
="06/07/2012 00:05:00"
="06/07/2012 00:07:00"
="06/07/2012 00:09:00"
="06/07/2012 00:09:00"
="06/07/2012 00:12:00"
Every day I replace "="" with a blank and then """ with another blank so that the cells will be converted into 6th July - Date format.
But now, when I try to record a Macro and do the same with VBA, the Date and Month are flipped their positions. So instead of being 6th July, it is converted to 7th June, which is absurd.
Troubleshooting:
I tried to find if any thing is wrong with the Date format in Regional settings. But, Nope. It is set to UK Date and Time settings (DD/MM/YYYY).
Sample file:
Please find the sample file uploaded here. Thank you!
https://rapidshare.com/files/1235575107/PalletExport__5_.csv
Thanks in advance,
Regards,
RK.