I have 3 Data Validation Cells (C1:C3). I am trying to lock the data validation tab on C3, until a selection is made in C2.
Is there a way to do this using VBA code?
Any help would be appreciated
I have 3 Data Validation Cells (C1:C3). I am trying to lock the data validation tab on C3, until a selection is made in C2.
Is there a way to do this using VBA code?
Any help would be appreciated
Start by unlocking cells C1 and C2. Leave cell C3 locked. Next protect your worksheet. Copy and paste this macro into the worksheet code module. Do the following: right click the tab for your sheet and click 'View Code'. Paste the macro into the empty code window that opens up. Close the code window to return to your sheet. You will be able to make a selection only in C1 and C2. Once you make a selection in C2, cell C3 will become unlocked.![]()
Please Login or Register to view this content.
You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
Practice makes perfect. I'm very far from perfect so I'm still practising.
Awesome, this code works great by itself. Thanks for the quick reply! I now have a new problem though. Perhaps you might be able to assist. I have existing VBA code in the same section, and I'm not sure how to place the new code in order to get all of it to work.
My initial code is:
How might I integrate both codes so they work together?![]()
Please Login or Register to view this content.
I'm not sure if this will do what you want. It would be easier to help if you could post a copy of your file with a detailed explanation of what you want to do.![]()
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks