rootdown42
Board Regular
- Joined
- Jun 8, 2005
- Messages
- 93
I'm using VBA code to loop through a bunch of rows and hide them based on cell values. Because of the performance issue encountered by recalculating page breaks when hiding/unhiding rows multiple times I inserted
to speed up performance, which works great. I figured that at the end of the code I'd just reformat the breaks. Since I just need this to fit on one large 8 X 14 sheet I inserted
The problem is that when viewing the print preview there are still several empty columns to the right that are showing up on the page, wasting extra space. I highlighted/deleted every unused column just to be safe and reopened the file, but the problem persisted. When I manually adjust the scaling to 55% I can get it to fit perfect, but even manually checking "Fit to 1 page" shrinks it back down to 49% and the empty columns.
Anyone have any suggestions as to what else could be causing this? Any help is appreciated.
Code:
ActiveSheet.DisplayPageBreaks = False
to speed up performance, which works great. I figured that at the end of the code I'd just reformat the breaks. Since I just need this to fit on one large 8 X 14 sheet I inserted
Code:
ActiveSheet.PageSetup.FitToPagesWide = 1
The problem is that when viewing the print preview there are still several empty columns to the right that are showing up on the page, wasting extra space. I highlighted/deleted every unused column just to be safe and reopened the file, but the problem persisted. When I manually adjust the scaling to 55% I can get it to fit perfect, but even manually checking "Fit to 1 page" shrinks it back down to 49% and the empty columns.
Anyone have any suggestions as to what else could be causing this? Any help is appreciated.