Insert a row on two tabs - but not in the same line location

Art3mis

New Member
Joined
Nov 17, 2019
Messages
11
Hey! I have an excel spreadsheet with two tabs that have corresponding information. When I insert information on the first tab it automatically autofills on the second. However, if i insert a new row on the first tab to add information, a new row will not pull up on the second tab. To combat this i am looking to create a macro that will insert a row at any given point on the first tab and equally insert a row on the second tab that will automatically autofill the formulas from above. However, I am not sure how to do this as the two inserted rows are not on the same line as each other.
Can anyone show me a macro that can do this?
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
How will the macro know where to insert a row on the 2nd tab? Does it need to look for the row with the same information as the row above the inserted line on the 1st tab?
 
Upvote 0

Forum statistics

Threads
1,214,938
Messages
6,122,346
Members
449,080
Latest member
Armadillos

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