G
Guest
In VFP 7, my application can perform the following command correctly using
Excel 2000, but not in Excel 2002:
goExcel = CREATEOBJECT("Excel.Application")
WITH goExcel
.Workbooks.Open(lcXlsName)
.Rows("5:5").Delete
ENDWITH
If I record this task in an Excel Macro and edit it using the Macro Editor,
I get the following:
.Rows("5:5").Select
.Selection.Delete Shift:=PxlUp
.Range("A5").Select
If I add <space>Shift:=PxlUp after the Delete command, the compiler returns
a syntax error.
How can I run Excel commands in VFP 7 like this? What is the correct syntax
for it?
Thanks
Excel 2000, but not in Excel 2002:
goExcel = CREATEOBJECT("Excel.Application")
WITH goExcel
.Workbooks.Open(lcXlsName)
.Rows("5:5").Delete
ENDWITH
If I record this task in an Excel Macro and edit it using the Macro Editor,
I get the following:
.Rows("5:5").Select
.Selection.Delete Shift:=PxlUp
.Range("A5").Select
If I add <space>Shift:=PxlUp after the Delete command, the compiler returns
a syntax error.
How can I run Excel commands in VFP 7 like this? What is the correct syntax
for it?
Thanks