Lock workbook Hide / Unhide Sheets

RAJESH1960

Banned for repeated rules violations
Joined
Mar 26, 2020
Messages
2,313
Office Version
  1. 2019
Platform
  1. Windows
Hello Experts,
I have posted this query the link of which I am sharing. The problem to hide and unhide sheets is solved. I am trying to protect the workbook and lock the project, but then the code runs haywire. The code is running perfectly when the sheet original is not protected. But once I protect the sheet Original, protect the workbook and lock the project, the code runs haywire and the code generates an error. I need help in editing the code so that once the project is locked and the workbook is protected, it must run perfectly.
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
I searched this site for the solution to my query and found the solution to my problem. Thanks to GWteB reply to a post

Macro error with protected sheet, debug flagging color.​

 
Upvote 0
I searched this site for the solution to my query and found the solution to my problem. Thanks to GWteB reply to a post

Macro error with protected sheet, debug flagging color.​

This site is really a gold mine. ?
 
Upvote 0
Guys,
I am getting an error when I run this code. Please share your expertise to find the solution to the problem. I am sharing the link where I have shared this problem and haven't got any solutions till now.
 
Upvote 0
Guys,
I am getting an error when I run this code. Please share your expertise to find the solution to the problem. I am sharing the link where I have shared this problem and haven't got any solutions till now.
FYI the problem is solved.
 
Upvote 0

Forum statistics

Threads
1,215,018
Messages
6,122,703
Members
449,093
Latest member
Mnur

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top