LOCATION OF WORKSHEET'S AUTOMATIC PAGEBREAKS

  • Thread starter Thread starter Anupam Soral
  • Start date Start date
A

Anupam Soral

i want to know the syntax for knowning the location of worksheet's automatic
pagebreaks.
 
Try

Sub stantive()
ActiveWindow.View = xlPageBreakPreview
For Each break In ActiveSheet.HPageBreaks
MsgBox "A" & break.Location.Row
Next break
ActiveWindow.View = xlNormalView
End Sub


Mike
 
Back
Top