Roderick_E
Well-known Member
- Joined
- Oct 13, 2007
- Messages
- 2,051
On Excel 2007-2013, if I simply format a new sheet as landscape, narrow margins; there are automatic pagebreaks. They appear to be every 34 rows or positionally the first break appears at 513.75. You'd think you could just increase in increments of 513.75 to the next break but I'm doing something wrong. I'm trying to insert charts/objects with the exact same height and widths at the very top of each page break, but somehow they keep drifting down into the next pagebreak after the 4th or 5th chart.
SAMPLE CODE:
Any ideas how to make the drift stop? I would simply check where the next automatic pagebreak is, but it doesn't seem accessible. Thanks
SAMPLE CODE:
Code:
shtop = 0 'start at very top of page
For Each Shape In activesheet.Shapes
Shape.Height = 495
Shape.Width = 665
Shape.Top = shtop
shtop = shtop + 513.75
next
Any ideas how to make the drift stop? I would simply check where the next automatic pagebreak is, but it doesn't seem accessible. Thanks