Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Protected Sheets - Viewing Cells that have been Unlocked

Status
Not open for further replies.

CWEngineer

Civil/Environmental
Jul 3, 2002
269
I created and excel spreadsheet. Then I selected a few cells. I right clicked and selected "Format Cells", then I unchecked "Locked". I then Protected the sheet so that I could only change the cells that I selected intially.

I am trying to find out if there is way to view the cells in the sheet that are unlocked.

Appreciate your help.
 
Replies continue below

Recommended for you

I am not aware of any way of having Excel emphasise unlocked cells in some way, although it would be quite easy to write some VBA code to achieve this.

When I unlock a cell, I always change its colour at the same time. (I want users of my spreadsheets to be instantly aware of where they are able to enter data.) I use a subtle shade of pale yellow, just yellow enough to stand out on a LCD screen, but not so bright as to show up when printed on a black and white printer.
 
I do the same as Denial, with the addition of setting up a print area, header/footer and specifying a default black and white print in the page setup dialog ahead of time. I then typically set the file attributes to Read-Only so that the master copy does not get mutilated by accident.
 
ASAP Utilities allows you to conditionally select all unprotected cells. Then, apply formatting to the selection.

On a side note, you can define a style for the input cells so that they'll all look the same.

Cheers,
Joerd

Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.
 
The reason, I am trying to figuere this out is because I might have selected some cells that I did not want to unlock.

I guess I can go and select all the cells and lock them all again. Then Unlock the cells that I am intersted in and make sure only those are unlock.

Thanks
 
Run the following code in the immediate pane of the VB editor. (it is on a single line!)
It gives you a list of cell addresses that are unlocked. Modify as you like (you can for example shade all these cells)

Code:
for each c in activesheet.usedrange.cells : m$ = m$ & iif (c.locked, "" , c.address & chr(10) ) : next c : ? m$
[ponder]

Cheers,
Joerd

Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.
 
Use the "Tab" key on a protected worksheet, each "tab" moves to the next unprotected cell.

(I color my unprotected "input" cells green for easy identification, then print in black and white.)
 
Thanks for all your input. Using the "Tab" key and the curson moving to the next unprotected cell is what I was looking for. Now I know that other cells were not included as unprotected cells. For now this serves my purpose - I might look into the VB Code later on.

Thanks

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor