Copying rows in between ranges with VBA

jo_hivera

New Member
Joined
May 29, 2020
Messages
28
Office Version
  1. 2019
Platform
  1. Windows
Good Afternoon,

I've been working on a file that has been automated in the past with simple formulas or just by linking cells to other sheets.
In this case, I'm having trouble programming a macro, by using a button, to copy a specific table in between ranges.
The ideia is to click the button that will insert the table under the others of the same kind, but above another 2 tables that must be in that order.
The point being that it copy the table below the one created before.

I also need help automatically naming sheets when created. I need to click a button, which will copy an example sheet, but it needs to follow a specific pattern, name-wise.
I've tried the regular programming on vba, but i've been tweaking it, with no success so far.

I'm attaching the example document.

Thank you for your help.
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
The example tables
 

Attachments

  • Sem Título.png
    Sem Título.png
    144.3 KB · Views: 4
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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