Thanks for your input.
I did come up with basically the same code for the With .QueryTables....Endwith
code but I used text substitution to feed the .Add method the text file name:
For example:
Note: gcappdir=addbs(sys(5)+curdir())
lcString='"TEXT;'+gcappdir+SUBSTR(SYS(2015),3)+".txt"+'"'
WITH loExcel.Application.ActiveSheet
.QueryTables.Add(&lcString,.Cells(2,1))
ENDWITH
Thanks again!
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only