Pulling data from master copy into multiple sheets

ThiccNugg

New Member
Joined
Oct 24, 2021
Messages
10
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi, I need a VBA code that copies data from a 'master sheet' and pastes it into the relevant sheets.

The 'master sheet' is named "BCA" and then I have many sheets that are renamed according to the value of ("AZ1") in their respective sheet. What I need is a VBA code to, for each sheet, search in the master sheet in column ("AC") for cells with value equal to the sheets ("AZ1") value and copy all relevant rows and then paste them in the sheet in cell ("A2"). Now as this this sheet is used daily there can be no set range as the amount of data changes from day to day.

Is this possible to do and if so could I please have some help. Thanks :)
 

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
Does it have to be macros? You have the powerful 365.
BCA Sheet, with data formatted as table:
MrExcelPlayground4.xlsx
AAABAC
1NameCountType
2Jamie55a
3Fred435b
4Harry65c
5John76a
6Sally56b
7Mary756c
8Maverick34a
9Goose6b
10Iceman534c
11George12a
BCA


One of the sheets, with the filtered data:
MrExcelPlayground4.xlsx
AVAWAXAYAZ
1NameCountTypea
2Jamie55a
3John76a
4Maverick34a
5George12a
Sheet24
Cell Formulas
RangeFormula
AV2:AX5AV2=FILTER(Table2,Table2[Type]=AZ1)
Dynamic array formulas.
Named Ranges
NameRefers ToCells
BCATable=Table2AV2
 
Upvote 0

Forum statistics

Threads
1,215,064
Messages
6,122,942
Members
449,094
Latest member
teemeren

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