Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HPageBreak Counts 1

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
hi,

I`m having a problem while using HPageBreaks from VBA to get the number of page breaks that was automatically inserted by Excel. HPageBreaks.Count is returning 2 while there are 3 page breaks in my worksheet. I`m using HPageBreaks.Location.Row to get the current row where the Page Breaks occur but it is missing the 2nd page break. What i`m trying to do is to spot where excel has inserted page breaks so as i can insert a specific header depending on the section printed.
Does anyone know how I can locate the position of all Page Breaks that were inserted by excel?

Any help would be most welcomed.
Thanx

vik.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top