If zip file is too big, you can always upload to free file sharing site like dropbox.com.
Option Explicit is something that I highly recommend. You can set that from your Visual Basic Editor (VBE): Tools > Options > Editor > Check "Require Variable Declaration" > OK. I set all of those and set Tab to 2. The option requires that you Dim (declare) all of your variables. If you don't know what a command word does, place the cursor in the word or next to it and press F1.
I shortened Jerry's code to show the concepts that I talked about. Place the first Sub into a Module. Notice that I sent the input parameter types as Variant. I called that routine and passed numbers, not strings, but left the Sub input parameter types as variant in case you had some reason to pass a number as a string.
Obviously, the other Sub is inserted into the sheet object that you want it to trigger from. Right click the sheet's tab, View Code, and paste it.
Add the other Cases and code as needed. Be sure to combine those Case matches as Jerry did when your Values were the same.
Bookmarks