>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.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao