Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Table range selection in Excel
Message
From
07/07/2011 04:35:29
Victor Chignes
Inteliventas
Peru
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Table range selection in Excel
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Miscellaneous
Thread ID:
01517536
Message ID:
01517536
Views:
83
Hello.
I'm automating Excel 2010. I have a Querytable and I want to select the entire data field.
The macro recorder gives me this VBA:
    Range("tVentas[[#Headers],[#Data],[valor_neto]]").Select
translated into VFP as
oExcel.Range("tVentas[[#Headers],[#Data],[valor_neto]]").Select
Wich gives a COM error.

oddly enought,
oExcel.Range("tVentas").Select
selects correctly the entire table. Also does tventas.ResultRange.Select, and so on

Any help?

Thanks in advance
Reply
Map
View

Click here to load this message in the networking platform