VBA to insert multiple rows beneath existing rows before adding page breaks for printing.

rickadams

New Member
Joined
Feb 11, 2018
Messages
31
I am looking to add 3-5 task rows to every sheet after an address change in the first column, with specific tasks for safety and the like.
The addresses changing will determine where to insert the extra lines.
Each address will have multiple tasks and some addresses will have more tasks than others.
Rather than adding 3-5 tasks manually at the end of each address change, I and wondering if they can be inserted with a macro.
First example is a single task for 123 Any Street and showing an example of what needs to be added.
Then I want to add a page break at the end of each address for printing pages to leave the sheet to check off they are complete at the address.

LocationItemMaterial Status - NotesCategoryAssigned toProgress
123 Any StreetPAINT EXTERIOR DOORS GREY COLOR AND FRAMES WHITEPAINTPAINTERS
Items to be inserted at the bottom of Every SheetAddress needs be copied from the first column and inserted to the added rows.The following items should always be the same.
123 Any StreetChange Smoke detector batteries & Check Dated9VSmokesBill
123 Any StreetChange Air FilterHVACBill
123 Any StreetChange Thermostat BatteriesHVACBill
123 Any StreetTighten Cabinet Door HingesMiscBill
123 Any StreetAdditional Misc TaskMisc

Thank you in advance,
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Forum statistics

Threads
1,214,583
Messages
6,120,380
Members
448,955
Latest member
BatCoder

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