Hi Jolivanes
This worked when I first tried it but then it stopped. I pasted your code in the sheet again and I still can't get it to work.
I'll try agin in a different workbook.
Thank you!
If it worked initially, something changed to make it not work.
The spelling of "Page Break"? Capitalization? Leading or trailing spaces?
It needs to be exact as in the code.
No, it does not.
You have to invoke it.
The code should be in a regular module, not a Sheet module.
If you want the code triggered when changing sheets, you have to let us know.
In Post #3 you said that it worked when first tried. How did you make it work?
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.