Damozz
asked on
Excel/VBA Date Format Problems
I am currently attempting to open a CSV file using VBA however when the CSV file is opened using the following code....
CSVFile = Application.GetOpenFilenam e("", , "CSV Import File")
Application.DefaultFilePat h = origDefPath
If CSVFile = "" Then
Else
Set SageWorkbook = Application.Workbooks.Open (CSVFile)
One column contains invoice date information and on certain rows the date format is alterting to MM-DD-YYYY while other remain DD-MM-YYYY. If I open the file manually the dates are fine.
Please can anyone advise
CSVFile = Application.GetOpenFilenam
Application.DefaultFilePat
If CSVFile = "" Then
Else
Set SageWorkbook = Application.Workbooks.Open
One column contains invoice date information and on certain rows the date format is alterting to MM-DD-YYYY while other remain DD-MM-YYYY. If I open the file manually the dates are fine.
Please can anyone advise
What are the date formats in the CSV file?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.