Ok
I figured out how to finally add page breaks. Now my question is this. The excel document that I have generated through code, is wider than an actual page. How do I specify that I want to print the entire width of the page?
Note that i CANT do this
because this completely overrides any page breaks that I have entered through code and completely misaligns everything.VB Code:
With .ActiveSheet.PageSetup .FitToPagesWide = 1 .FitToPagesTall = totalPages End With
Is there any way to find out how much you would need adjust the size of the print area similar to that of the print option "Adjust to __ % of actual size" so that everything fits 1 page wide by however many pages long.
