hide and protect
RH

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Hide and protect

Hide and protect

resolvedResolved · Urgent Priority · Version 2003

Karen has attended:
Excel Advanced course

Hide and protect

Hi

I wish to give a workbook (made up of 50 sheets all the same) to someone to enter some data in some of the columns (say columns M & N on every one of the 50 sheets). But however, the data in columns C to L of each sheet is confidential and so I wish to hide it from view while the person is entering and also protect these columns C to L (I do know how to hide columns but I do not want theperson to be able to unhide it). Can you tell me how please. I have tried from the manual/help screen but not going well !

RE: Hide and protect

Hello Karen

Thank you for your question.

In order for someone to be able to enter data into columns M and N, you would need to unlock the cells in these columns, then apply protection to the sheet.

To speed up the process of doing this to every single sheet, it would be a good idea to record a macro, and then you can play the macro on each sheet. Still a bit time-consuming, but better than carrying out the same steps manually on each sheet.

Try the following:
1. Start the macro recorder (Tools - Macro - Record New Macro), and give the macro a name (without any spaces in it). Click OK to start recording.
2. Select columns M and N, right-click on top of the selected cells and go to Format Cells. On the Protection tab, uncheck the Locked option and click OK.
3. If required, also select and hide the columns that need to be hidden (assuming that this hasn't been done already on each sheet).
4. Apply protection by going to Tools - Protection - Protect Sheet, and click OK.
5. Stop the macro recorder by pressing the Stop button on the small toolbar on the screen; or going to Tools - Macro - Stop Recording.

Test the macro on another sheet to make sure it works properly: Tools - Macro - Macros, select the macro and click Run.

You may like to add a button to your toolbar to run the macro rather than having to go through the Tools menu on each sheet: Tools - Customise - Commands tab. Select Macros under Categories on the left, select the Custom button from the right; drag and drop this onto a toolbar at the top of the screen.

To attach the macro to the button: right-click on the button and go to Assign Macro, select the macro and click OK. You can also change the button display from the shortcut (right-click) menu.

I hope this helps.

Kind regards
Amanda

Thu 5 Nov 2009: Automatically marked as resolved.


 

Excel tip:

Create a unique items table from a duplicating table

1. Ensure that your list has column headings
2. Select the entire list
3. From the menu bar, select DATA, FILTER, ADVANCED FILTER
4. Select "Filter the list, in place", and tick the "Unique Records Only" box
5. Click OK, filtered list appears.

View all Excel hints and tips


Server loaded in 0.05 secs.