Thank you very much. The syntax worked out to be
ox.selection.insert(xldown)
>Robert,
>
>It looks from your VB code that Shift is a named argument for the Shift method. VFP can't use named arguments so you have to put it in the right place in the method call:
>
>ox.Rows("1:3").select
>ox.Selection.Insert( [optional argument commas go here] xlDown )
>
>>Rows("1:3").select
>>Selection.Insert Shift:=xldown
>>
>>I tried:
>>ox.rows("1:3").select
>>ox.selection.insert.shift(xldown)
>>
>>The rows are inserted in to the worksheet but I get a Foxpro error telling me:
>>Member INSERT does not evaluate to an object.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only