Inserting PageBreak via a cell or group of cell constraints.

Jvalades

New Member
Joined
Jul 28, 2016
Messages
40
Hello Excel world.

So I have a very big list of (for this example lets call them) locations.

See example:

01 02 A
01 05 A
01 05 B
01 06 A
01 06 B
PAGE BREAK
02 01A
02 01B
02 05A
02 05B
02 06A
02 06B
PAGE BREAK
03 01 A
03 01 B
03 02 A
03 02 B
PAGE BREAK
ELA011
ELA012
PAGE BREAK
ELA110
ELA112

<colgroup><col></colgroup><tbody>
</tbody>

The list goes on and on and on. I am trying to write a vba code that will search through a specific column and insert page breaks after each group of "Locations".

As you can see each group seems different in its own way. Some groups change by (Ex. a group = "ELA 0-99" or "ELA 100-199") different constraints.

Can I perform either a VBA macro or something to help simplify this process?

Thank you for your help and let me know if I can clarify the question.

J
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Forum statistics

Threads
1,215,222
Messages
6,123,704
Members
449,118
Latest member
MichealRed

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