Looping through specific worksheets to pull data, add to associated columns

cosmic_chelonian

New Member
Joined
Aug 27, 2021
Messages
3
Office Version
  1. 365
Platform
  1. Windows
I have a workbook with four sheets-- Sheet A, Sheet B, Sheet C, and Master.

The three sheets have the same base headers, but also have some specific to that sheet (i.e., Sheet A & C do not ask for Pet Name, but Sheet B does). The "Master" sheet has 104 columns with headers that do not match exactly to Sheet A/B/C. They also may not be in the same order. Many of these columns will be left blank but are required to be present on the sheet.

I am trying to write something to pull the data from Sheet A/B/C and copy it into the associated column in "Master".

I have tried about half a dozen ways but I am super new to VBA and when I try to copy existing methods, I either can't figure out how to apply the example to my sheet, or Excel runs out of memory.

If y'all could help give me that little running start with some kind of example or direction, I would be eternally grateful.

Here is an example I just made up to show what I am needing:

1630093899839.png


1630093928584.png
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Forum statistics

Threads
1,214,943
Messages
6,122,376
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