Page Break Every Cell - VB Code Workaround

AlInVegas

New Member
Joined
Dec 31, 2007
Messages
19
I have a spreadsheet that comes up with the page break every cell error when I run macros that touch any of the page layout or print parameters. My understanding is that this an error that sometimes occurs when Page Scaling is used.

Has someone come up with a short sweet workaround code that resets the breaks and allows the 1 page wide by however many long to work?
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Not sure if it's related, but thought it might help.... My page layout changes to include a page break for every cell any time I print to PDF from Excel. If I close the file and exit the instance of Excel, then reopen Excel and the file in question, the page breaks go back to what I originally set.
 
Upvote 0

Forum statistics

Threads
1,223,240
Messages
6,170,951
Members
452,368
Latest member
jayp2104

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top