Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel object and QueryTables Method
Message
 
To
30/01/2002 11:44:23
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
CodeMine
Miscellaneous
Thread ID:
00612699
Message ID:
00619964
Views:
20
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
Map
View

Click here to load this message in the networking platform