ox = createobject("excel.application")
ox.visible = .t.
* Open or create the desired worksheet here
oSheet = ox.activesheet
oSheet.Rows(1).Delete(xlUp) &&Excel constant xlUp = -4162
>Something like:
>ObjExcel.Workbooks.Open(fullpath("filename.xls"))
>ObjExcel.Rows("1:1").Delete
>
><<<<<<<<<<<<<<<< your message below >>>>>>>>>>>>>>>>
>
>thanks yuri. your solution worked. another excel question for you: how do I delete just the first row of an excel file. what is the excel object for that method. doesn't need to set the range, just needs to delete teh headers which is usually the first row....
>Thanks in Advance.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison