Multiple criteria from two data validation lists sets trigger for macro

Hello Experts,
I need a bit of code that will select a macro based upon user selection from two data validation lists, each list contains 4 choices. The macro is triggered upon a button click.
Thanks,
biker9 Criteria-sets-macro.xlsm
biker9Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

nutschCommented:
Problem with your macros is the system will confuse them for cell names, etc. If you rename them, you can use the application.run.

Here is my update

Sub Button3_Click()

Application.Run "Macro" & [G11] & [G12]

End Sub

Sub MacroA1()

Range("G21") = "Test A1 OK"

End Sub


Sub MacroB1()

Range("G21") = "Test B1 OK"

End Sub

Open in new window


Thomas
0
biker9Author Commented:
Thomas,
when I run the code, I get an error msg "400" ?
tx,
Ray
0
nutschCommented:
Are you running it from personal.xls or the workbook where the button is?
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

nutschCommented:
Are your sheets protected?

Try it with the file I tested
Criteria-sets-macro.xlsm
0
biker9Author Commented:
I now get a run time error 1004 with the file you sent.
0
nutschCommented:
My bad. Try this one
Copy-of-Criteria-sets-macro.xlsm
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
biker9Author Commented:
Perfect,
Thanks Thomas,

(ps. sorry..i thought i had closed this off a couple days ago)
0
nutschCommented:
No problem. Glad to help.

Thomas
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.