The code can be found here:
''''''''''''Link Start/Url Start'''''''''''''''''''''
http://www.a-webdesign.com/toggleButt...
''''''''''''Link End/Url End'''''''''''''''''''''
ToggleButton to protect and unprotect to hide and unhide cells and columns in Excel VBA.
How to use VBA code to protect and unprotect a worksheet. VBA Code to hide, unhide, protect and unprotect.
Easy to use.
Microsoft Excel tutorial. Microsoft Excel Video Tutorial