leocoppens
Board Regular
- Joined
- Mar 7, 2007
- Messages
- 53
Hi,
I'm running a query that collects the data from a text file. The code is the following one:
Set shtX = Sheets("Sheet4")
shtX.Select
Range("DSet3_Range").Select
Selection.Clear
Range("A1").Select
With ActiveSheet.QueryTables.Add(Connection:= _
"TEXT;C:\Ssm\Dataset\SSM459200806MData.txt", Destination:=Range("A1"))
.TextFileTabDelimiter = True
.Refresh
End With
The code runs just fine. The only problem I found is that excel is automatically changing some of the values retrieved.
This happens for example when excel finds the value "11.99". In these kind of cases it changes it to 01.11.1999 and it's impossible for me to "go back" and get the original value as it appears already changed.
Is there any way I can disable this annoying excel feature?
Thanks a lot for your help!
Leo
I'm running a query that collects the data from a text file. The code is the following one:
Set shtX = Sheets("Sheet4")
shtX.Select
Range("DSet3_Range").Select
Selection.Clear
Range("A1").Select
With ActiveSheet.QueryTables.Add(Connection:= _
"TEXT;C:\Ssm\Dataset\SSM459200806MData.txt", Destination:=Range("A1"))
.TextFileTabDelimiter = True
.Refresh
End With
The code runs just fine. The only problem I found is that excel is automatically changing some of the values retrieved.
This happens for example when excel finds the value "11.99". In these kind of cases it changes it to 01.11.1999 and it's impossible for me to "go back" and get the original value as it appears already changed.
Is there any way I can disable this annoying excel feature?
Thanks a lot for your help!
Leo