Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLE Automation - Excel
Message
De
23/07/2007 03:50:53
Ed Hizon
Skswood Sdn. Bhd
Kuala Belait, Brunei
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
OLE Automation - Excel
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01242686
Message ID:
01242686
Vues:
62
Dear all,

I would like to know the equivalent code to VFP if using OLE the command in Excel for "Find" The following will give an error:

XLApp = createObject('excel.application')
XLApp.Visible = .t.
*XLApp.WorkBooks.open('c:\xxx\xxxx.xls')


XLSheet = XLApp.ActiveSheet

xlsheet.range("h:h").select

xlsheet.selection.find.text="ABCD"

Please advise.

Thanks.

Ed
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform