rhino4eva
Active Member
- Joined
- Apr 1, 2009
- Messages
- 262
- Office Version
- 2010
- Platform
- Windows
With ActiveSheet.QueryTables.Add(Connection:="TEXT;T:\JICU20190512123222.txt" _
, Destination:=Range("$A$1"))
.Name = "JICU20190512123222"
.TextFilePlatform = 850
.TextFileStartRow = 4
.TextFileParseType = xlDelimited
.TextFileSemicolonDelimiter = True
.TextFileColumnDataTypes = Array(1, 1, 1, 9)
.Refresh BackgroundQuery:=False
ok so I have a huge txt file but all I need is one line.
Line 4 has 3 columns of important info that I need to import
At the moment I resolved to delete anything below 4
Is there a cleaner way
, Destination:=Range("$A$1"))
.Name = "JICU20190512123222"
.TextFilePlatform = 850
.TextFileStartRow = 4
.TextFileParseType = xlDelimited
.TextFileSemicolonDelimiter = True
.TextFileColumnDataTypes = Array(1, 1, 1, 9)
.Refresh BackgroundQuery:=False
ok so I have a huge txt file but all I need is one line.
Line 4 has 3 columns of important info that I need to import
At the moment I resolved to delete anything below 4
Is there a cleaner way