Cannot remove existing print area

Rocky0201

Active Member
Joined
Aug 20, 2009
Messages
278
In my macro, I loop through my sheet at 35 row intervals looking for a non null if column A. If I find a null in column A, I back up a row until i find a non null in column A. Once found, I set a page break. I then increment another 35 rows and do the same test.

The logic seems to work well excpet that current print area is getting in the way and I can't seem to clear it. I do not know how to clear the print area in the macro (if someone knows how that would be great) however, I can't get the print area to clear even if I do a "Clear Print Area" under Page Layout of the Toolbar Ribbon (Excel 2007)

Can someone help?

Thanks...
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Forum statistics

Threads
1,215,757
Messages
6,126,695
Members
449,331
Latest member
smckenzie2016

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