Unprotecting workbook when drilling into a pivot table row

stubarny

New Member
Joined
Apr 7, 2011
Messages
41
Hello,

I have a pivot table that I need users to be able to double click in order to drill into a row detail - causing a new worksheet to be created.

My problem is that I need the workbook to be protected and this protection is preventing the pivot table drill down.

Please could you tell me how I can unprotect the workbook whilst carrying out this event and then re-protect the workbook when the event is finished?

(I was thinking of using Worksheet_BeforeDoubleClick to unprotect the workbook but do you know of an equivalent procedure for "after" the double click event (so that I can re-protect the workbook)?

Many thanks,

Stu
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Fix:

before double click event:

Worksheet_BeforeDoubleClick

after double click event (just remove the Before from the procedure name to get to the equivalent "after" procedure name):

Worksheet_DoubleClick
 
Upvote 0

Forum statistics

Threads
1,224,596
Messages
6,179,807
Members
452,944
Latest member
2558216095

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