How to add extra row to three different sheets with one macro?

ncgarcez

New Member
Joined
Nov 4, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi everyone,

Couldn't find a question and answer with what I need, and couldn't improvise with similar ones, so I'm posting my problem below.

I currently have a spreadsheet with three tabs. Each sheet contains a different table, but all have in common is their location. First sheet contains address information, second and third sheet have different information regarding same location was first tab. Each location is assigned a number. So instead of repeating address on second and third sheet, only the location number would show up as reference. I'm uploading a simplified example of what the spreadsheet would look like.

I'm just trying to add a button with a macro that would add a new row to the table in all sheets, adding a number to the location. If someone could help it would be great!

Thank you!
 

Attachments

  • Sheet 1.png
    Sheet 1.png
    78.9 KB · Views: 3
  • Sheet 2.png
    Sheet 2.png
    76.2 KB · Views: 3
  • Sheet 3.png
    Sheet 3.png
    77.5 KB · Views: 3

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Is this the scenario you want to do?

Add new location to tab 1 to the end of the table giving it the next sequentional location number. Add a new row in Tab 2 and Tab 3 at the end of of each table placing the new location number into each.
 
Upvote 0
Is this the scenario you want to do?

Add new location to tab 1 to the end of the table giving it the next sequentional location number. Add a new row in Tab 2 and Tab 3 at the end of of each table placing the new location number into each.
Hi, yes. Exactly that.
 
Upvote 0

Forum statistics

Threads
1,214,942
Messages
6,122,367
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