>I am running an automated program that prints the final product to the printer and I need to insert a page break at line 42 if certain parameters are met within the program.
>
>I am having problems converting this into VFP code.
>
> Range("A42").Select
> ActiveWindow.SelectedSheets.HPageBreaks.Add Before:=ActiveCell
>
>Thanks
>Todd
with oExcel.Sheets('SheetNameOrIndex')
.HPageBreaks.Add(.Range("A42"))
endwith
Cetin