Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLE with Excel - I'm stumped
Message
 
À
27/06/2003 11:00:50
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00804575
Message ID:
00804716
Vues:
49
Cetin

This code always puts the paste into worsheet1 - fantastic

this._webBrowser41.Navigate2('file://j:\global\mertest.xls')

*Once you do this you've access to excel's object model too. ie:

oXLS = thisform._webbrowser41.object.document

oExcel = oXLS.Application

*oExcel.Application.ActiveWorkbook.Save()

lcTempFile = sys(2015)+".txt"
copy to (lcTempFile) delimited with TAB
_cliptext = filetostr(lcTempFile)
erase (lcTempFile)

oExcel.ActiveWorkBook.ActiveSheet.Range("g8:g19").PasteSpecial()
_Cliptext = "" && Empty clipboard
oExcel.Application.ActiveWorkbook.Save()

How do I make the active worksheet worksheet 2 (its name is LON Per)?

Colin
Specialist in Advertising, Marketing, especially Direct Marketing

I run courses in Business Management and Marketing
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform