I download my BT telephone bill from the web in CSV format. I then tidy it up and make various calculations to determine client bills etc.
I open the CSV file manually and a date of "01/10/2002" is shown for one entry. Formatting the cell as General, I get a date value of 37530 which if I then format in another date mode comes out as "01-Oct-02". Fine!
I get the filename and then use the VBA routine
The same entry now shows "10/01/2002" and formatted as General shows 37266!
The same thing happens if I
There are 200 entries and about 30 of these change when I use the VBA command.
Has anybody any ideas as to what is happening?
Paul
I open the CSV file manually and a date of "01/10/2002" is shown for one entry. Formatting the cell as General, I get a date value of 37530 which if I then format in another date mode comes out as "01-Oct-02". Fine!
I get the filename and then use the VBA routine
Code:
NoAction = False
ChDir "D:\Downloads\Household\"
MyFileName = Application.GetOpenFilename("All Files (*.csv),*.csv", , "BT CSV Telephone File", , False)
If MyFileName = "" Or MyFileName = "False" Then
MsgBox "No file was selected."
NoAction = True
Exit Sub
End If
Workbooks.Open FileName:=MyFileName, Format:=2
The same entry now shows "10/01/2002" and formatted as General shows 37266!
The same thing happens if I
There are 200 entries and about 30 of these change when I use the VBA command.
Has anybody any ideas as to what is happening?
Paul