PDA

View Full Version : Solved: Page break after each new customer



Djblois
12-22-2006, 01:14 PM
Why won't this work?

With pt.PivotFields("Customer")
.LayoutPageBreak = True
End With

I declared pt as pivottable and Customer is the correct field

Djblois
12-25-2006, 08:11 PM
Does anyone know where my error is? I am trying to get the pivottable to insert a page break after each new item in the customer column field.

P.S. I hope everyone had a good holiday!!!

m.azrie
12-25-2006, 10:05 PM
Hello djblois,
May be Your Scalling (in Page Setup) is selection on "Fit to:".. if you want to use page break, you should select on "Adjust To:"..

I hope its work..

Djblois
12-26-2006, 07:54 AM
Mohd,

Thanks for the Input. Can you give me an example in code because I don't understand what you are saying

m.azrie
12-27-2006, 06:05 PM
Actually, i'm not sure it's correct or not.. but from my experience, Excel page brake wont work when we set the page in fit to pages.


http://www.orbitfiles.com/download/id1124034813