AndrewMozley
Programmer
I would like to copy a row from one sheet to another in the same workbook.
By recording a macro in XL, I can see :
Range("B8
8").Select
Selection.Copy
Sheets("Sheet2").Select
Range("B12").Select
ActiveSheet.Paste
I try to run this in VFP, with an object .zSheet1 representing the first sheet
.zSheet1.Range("B8
8").Select
Selection.Copy
But I am failing on this second line because “Object ‘Selection’ does not exist”
Is “Selection” an object which only exists within Excel? What is the easiest way to copy this row.
Thanks. Andrew
By recording a macro in XL, I can see :
Range("B8
Selection.Copy
Sheets("Sheet2").Select
Range("B12").Select
ActiveSheet.Paste
I try to run this in VFP, with an object .zSheet1 representing the first sheet
.zSheet1.Range("B8
Selection.Copy
But I am failing on this second line because “Object ‘Selection’ does not exist”
Is “Selection” an object which only exists within Excel? What is the easiest way to copy this row.
Thanks. Andrew