Macro to copy column values to another workbook sheet based on sheet name in referenced cell

smrmodel78

New Member
Joined
May 2, 2022
Messages
9
Office Version
  1. 365
Platform
  1. Windows
I have minimum VBA experience, but I a file that has multiple columns that need to be copied to another workbook. The issue i'm having is 1/i don't know how to copy multiple ranges of cells from one workbook to the other and 2/how do i get that specific column data to post into a specific sheet?


In the image, for example, i need to copy all data from wb1.sheet1.ranges C12:C26 & C32:C38 much more, and copy it to wb2.sheet (sheet is based off name in row 4) Range A12:A26 & A32:A38. Each column in wb1 will go to a different worksheet.
1651509217529.png


Unfortunately I can't attach the file because of PHI. :( But any help to start would be awesome.
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

Forum statistics

Threads
1,214,830
Messages
6,121,839
Members
449,051
Latest member
excelquestion515

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