CookieMonster76
Board Regular
- Joined
- Apr 30, 2015
- Messages
- 195
Hi
I have a text file that comes out of a finance system, that needs converting into excel.
It has a series of dates. I have recorded a macro, and the result comes out as I would expect whilst recording, but when I re-run it as a macro, it is changing the format i.e. (English date format) 04/10/22 is changing to 10/04/22.
The odd thing is that it is only doing it one some lines, the vast majority are correct.
The relevant part of the code is:
DataType:=xlFixedWidth, FieldInfo:=Array(Array(0, 1), Array(10, 1), Array(11, 1), Array(21, 1), Array(22, 1)
Does anyone have a suggestion as to why, and how I can fix it?
Thanks
Paul
I have a text file that comes out of a finance system, that needs converting into excel.
It has a series of dates. I have recorded a macro, and the result comes out as I would expect whilst recording, but when I re-run it as a macro, it is changing the format i.e. (English date format) 04/10/22 is changing to 10/04/22.
The odd thing is that it is only doing it one some lines, the vast majority are correct.
The relevant part of the code is:
DataType:=xlFixedWidth, FieldInfo:=Array(Array(0, 1), Array(10, 1), Array(11, 1), Array(21, 1), Array(22, 1)
Does anyone have a suggestion as to why, and how I can fix it?
Thanks
Paul