VBA using Data Validation to Find Worksheet in Different Workbook, then Copy/Paste to Open Workbook

emack1230

New Member
Joined
Jul 9, 2022
Messages
34
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Based on a data validation selection, I have this code opening up a "Job Qualification" Workbook, grabbing the correct job qualification, copying it, then pasting it into my current "Open Workbook". Each location/Plant will have a variety of job qualifications and I don't want to build out 100 different modules for each plant or have to change when a qualification changes.

Is there a way to change the code from loading/running each individual module to go and open the Job Qualification Workbook to something like a vlookup based on the data validation that would go into the Job Qualification workbook, find the worksheet with the same name and copy/paste to my open workbook? Thank you in advance.

VBA code for JQ copy paste.png
 

Attachments

  • VBA code for JQ copy paste.png
    VBA code for JQ copy paste.png
    65.4 KB · Views: 8

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Here is what the Module 1 code looks like and works great.

1681848309382.png
 
Upvote 0
Solution

Forum statistics

Threads
1,223,908
Messages
6,175,306
Members
452,633
Latest member
DougMo

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