I got great help from Cheeky Charlie in my last thread - thanks!
In cell E12, I have a drop down list of choices. I am using a code that will display a message box whenever a particular choice is picked from that list.
I'm trying to do the same thing in a large range of cells (L5:O5, L12:O12, L15:O15, L18:O18, L21:O21 and L24:O24). So if someone were to choose OPTION A from cell L5, they'd get a message. If they chose OPTION A from cell M18, they'd get the same message. If the chose OPTION A from cell O21, they'd get the same message. If they chose...well, you get the idea.![]()
If Target.Address = "$E$12" Then Application.DisplayAlerts = False ActiveSheet.Unprotect Select Case Range("E12").Value Case "OPTION D": MsgBox ("MESSAGE MESSAGE MESSAGE MESSAGE") End Select ActiveSheet.Protect Application.DisplayAlerts = True End If
My question, is do I have to have a copy of that code for every single cell I want to do this in, or is there a way to make that same code cover the range of cells I specified?
Thanks!
Sorry, forgot to mention that I'm using Office Excel 2003
Bookmarks