VBA to copy a template from one sheet to another based on dropdown

altizerc2196

New Member
Joined
Jun 14, 2024
Messages
6
Office Version
  1. 365
Platform
  1. Windows
  2. Web
Hello! New to VBA and I've looked through every post I can find that would fit my use with no success.. I am trying to copy a schedule "template" from one sheet to another based on if a data validation dropdown matches the value in row 1 of the second sheet.

Dropdown is in Sheet "Add A Project" Cell B3 (Cells B3:D3 are merged if that matters). Validation options are currently "Sell Sheet", "Website", "Media Execution", and "Media Reporting". Validations are pulled from Sheet "Schedule Templates" Range A:AA

"Add A Project" Sheet:
1718395811365.png


Ideally, if I selected "Sell Sheet" from the data validation dropdown, it would search Sheet "Schedule Templates" Range A:AA for "Sell Sheet", Copy the schedule template from below "Sell Sheet" (In this case, Schedule Templates!A2:A16) and paste back into "Add A Project" starting at B8. If I selected "Website" It would do the same thing, but resulting in copying Schedule Templates!B2:B24 to Add A Project!B8.

"Schedule Templates" Sheet:
1718396209204.png


Desired Outcome:
1718396431319.png


I am unable to use formulas like xlookup or vlookup in column B because it interferes with other macros I have in the workbook.

I'm at the end of my wits, so many thanks in advance and please let me know if there's any other info I can provide.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Forum statistics

Threads
1,217,981
Messages
6,139,758
Members
450,230
Latest member
RStasicky

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