Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Table range selection in Excel
Message
De
07/07/2011 04:35:29
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Table range selection in Excel
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Divers
Thread ID:
01517536
Message ID:
01517536
Vues:
84
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
Répondre
Fil
Voir

Click here to load this message in the networking platform