sheet unprotects with doubleclick

rjmdc

Well-known Member
Joined
Apr 29, 2020
Messages
703
Office Version
  1. 365
Platform
  1. Windows
hi
i have a password protected sheet and process. somehow column headers are chnaged despite protection because of the forms that allow double clicks
this seems to unprotect the sheet
i dont know what to do to keep them protected
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Do you have a macro on your sheet that gets triggered with a double-click? Look for this:
VBA Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
 
Upvote 0
i commented it out and it still triggers the unprotect
 
Upvote 0
So, your worksheet is protected, you double-click on that sheet, and now it is unprotected? If so, you still have a macro running. Please make sure the code you found was on the sheet in question.
 
Upvote 0
You could also have a macro in the "ThisWorkbook" module with an event macro like this:
VBA Code:
Private Sub Workbook_SheetBeforeDoubleClick(ByVal Sh As Object, ByVal Target As Range, Cancel As Boolean)
 
Upvote 0
i searched the entire project for souble click
only 1 instance
i commented it out and it still triggers
what else can i look for since i allow dtaa entry to the rest of that column
 
Upvote 0
When you protect the sheet are you protecting the columns or allowing column changes? Leaving it unchecked prevents users from changing the column size, inserting, or deleting.
1715104304143.png


Change the password when you protect the sheet and see if the macro can unprotect that!!! The macro will stop on that line.
 
Upvote 0
its checked
i nevr had this before somehow it keep sunprotecting
 
Upvote 0
Well rjmdc, there is no way for a sheet to unprotect itself. When you protected the sheet, did you add a password?
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,175
Members
452,615
Latest member
bogeys2birdies

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