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

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
The example tables
 

Attachments

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

Forum statistics

Threads
1,213,487
Messages
6,113,938
Members
448,534
Latest member
benefuexx

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