Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Saving Excel file
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00520931
Message ID:
00521023
Views:
18
This message has been marked as a message which has helped to the initial question of the thread.
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
Previous
Reply
Map
View

Click here to load this message in the networking platform