Protection Status of the selected tab in a cell (A1) - Formula, Not VBA

matthec2

New Member
Joined
Dec 17, 2013
Messages
36
Hi all,

Without using VBA (i already know the solution here but wondered if there is a quicker formula/function solution), I want to show in a cell on the selected tab, the protection status of that tab.

So for example when the sheet is protected, Cell A1 will say LOCKED
And when when the sheet is unprotected the cell changes to UNLOCKED.

I've just worked out how to use a function to put the tab name in a cell (very useful for indirect formulas!) so wondered if there is a similar function to get the tab protection status.

Thanks!
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
You could use an old excel4macro function.
create a defined name in the name manager (I called it Status) using
Excel Formula:
=GET.DOCUMENT(7)&T(NOW())
then in the sheet you can use
Excel Formula:
=IF(Status="TRUE","Locked","Unlocked")
However this will not change automatically when the sheet is un/locked. It will only change when something else changes or re-calculates.
 
Upvote 0

Forum statistics

Threads
1,215,108
Messages
6,123,134
Members
449,098
Latest member
Doanvanhieu

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