Strangely, the lines showing the pagebreak in the wrong place still appear, but when the user scrolls down, at some moment they appear in the correct place.
Perhaps it is because I tested with an older version of Excel. IIRC, Excel 97.
>Hi Hilmar,
>
>This works for me:
>
>
>.....
>with objExcel.ActiveSheet
> .DisplayPageBreaks =.f.
> .PageSetup.zoom = 60
> .DisplayPageBreaks =.t.
>endwith
>
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)