Awesome! Thanks John
>oexcel=create('excel.application')
>with oexcel
> .visible = .t.
> .workbooks.open(getf('xls'))
> .Range("A1:B1").Select
> .Selection.SpecialCells(11).Select
> .ActiveWorkbook.SaveAs('abc.xls',1)
>endwith
>this code will give you the ability to select the entire contents of the active workbook. You could also just use a macro and run it after instancing the workbook with oexcel.run('mymacro').
John L. Miller
Logikos, Inc.
"Solutions With Software"
Tel: 979-826-6034
Fax: 979-826-8845