Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Converting excel macro to VFP
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00261234
Message ID:
00261485
Vues:
40
John,

My suggestion left something out. This should work.
oExcel.ActiveChart.SetSourceData(.Sheets("cheqsale").Range("AB4:AB8"),xlColumns)

You may need to add this line too.
oExcel.ActiveChart.Location(xlLocationAsObject,"cheqsale")

Using WITH/ENDWITH will be better.

WITH oExcel.ActiveChart
.SetSourceData(.Sheets("cheqsale").Range("AB4:AB8"),xlColumns)
.Location(xlLocationAsObject,"cheqsale")
ENDWITH

Sorry I did not notice the missing period.

Tom Molloy
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform