Pagebreaks are not made
I am automating Excel from VB6.
I ran into a similar problem using your method.
I have just stumbled upon this method that seems to work.
'select a cell, make it active
Range("A14").Select
'insert pagebreak in the active cell
ActiveWindow.SelectedSheets.HPageBreaks.Add Befo=ActiveCells
Does it work for you?
|