View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.programming
microstoc microstoc is offline
external usenet poster
 
Posts: 1
Default 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?