oExcel = createobject("excel.application" ) oExcel.Visible = .t. oExcel.Workbooks.Add() && you should use a call to Open() to open an existing file oSheet = oExcel.ActiveSheet oRow = oSheet.Rows(1) ? oRow.Height && prints 12.75 for me oRow.Delete() && deletes the first rowSo this loop ought to work:
for each loRow in oSheet.Rows() if ( loRow.Height = 3 ) loRow.Delete() endif endforRealize though that a spreadsheet has a lot of rows so it may take a long time to process unless you use something else to limit the number of rows that actually get processed.