Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Excel insert row
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00410003
Message ID:
00410010
Vues:
37
>I have successfully converted most of an Excel macro into VFP code, but I'm stuck on one part: inserting a row into the sheet. The VBA code is "Selection.Insert Shift:=xlDown "
>
>My last attempt was this:
>
>.Selection.Insert= -4121 &&xlDown from Excel8.olb
>
>Any suggestions?

As Markus said, you can't use named paramters in VFP. Luckily, Insert only takes 1 parameter so the syntax would be:

.Selection.Insert(-4121)
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform