What would the code look like to select a Lock and Unlock capability in a single Worksheet? Here's the tricky part. How do you switch icons to represent the condition or status (Locked or Unlocked) on the sheet?
The icon should change when selected.
Greetings. Thanks for jumping in. With the code you provided, I sketched up a mock WS. I can't get it to work but thought this might show exactly what I'm looking for.
I have updated the code that you had on your sheet and assigned the pictures to run one of the subs. Now when you click on the locked picture it locks the sheet and when you click on the unlock icon it unlocks the sheet. Lock-Unlock-Macro.xlsm
Bright01
ASKER
Mike and Martin,
GREAT........ALMOST THERE!!!! Re-read the original "ask".
Overlay the two icons. When you click on one of the icons, the other appears.... and vice versa. Only the next option (Lock or Unlock) is shown. This gives the impression of a single button that locks and unlocks the worksheet.
Open in new window
Obviously, you don't necessarily need all of those options. You can read about them on the link above.