Excel 2007 PageBreaks Question

  • Thread starter Thread starter Barb Reinhardt
  • Start date Start date
B

Barb Reinhardt

I've been using the following code in 2003 and 2007

Dim myPageBreak as Excel.HPageBreak

For Each myPageBreak In myWS.HPageBreaks
blah blah blah

next myPageBreak

On one machine with Office 2007, there are no problems (the one I have
access to). On another machine, there are problems. This particular
worksheet has 3 page breaks and if I do this
debug.print myWS.HPageBreaks.count I get 3 (on the other machine)

Has anyone seen anything like this? What do I do to address it?

Thanks,
Barb Reinhardt
 
I think I'm going to try this approach

For i = 1 to myWS.HPageBreaks.Count

next i

If that doesn't work, I"ll be back.

Barb Reinhardt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top