Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simple Excel Automation
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00714397
Message ID:
00714458
Vues:
18
>I have an excel workbook where i would like to do the following using automation. The excel file has data in the A B and C columns.
>I would like to search for a string in the A column
>If found, i would like to get the string from the corresponding C column.


Whatever you want to accomplish in Excel through automation, your best choice is to fire up the macro recorder (Tools|Macros) then record your actions. Then press Alt-F11 tro see the VBA Editor. Under Module1 you will see the VBA code. It is not the most efficient code but it works and it is fairly easy to translate to VFP.

If you then have specific VBA snippets that youi can translate you can always ask here.

HTH


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform