Excel Q - How can I...
 

MegaSack DRAW - 6pm Christmas Eve - LIVE on our YouTube Channel

[Closed] Excel Q - How can I prevent someone from selecting a sheet without hiding it?

15 Posts
9 Users
0 Reactions
102 Views
 IHN
Posts: 19877
Full Member
Topic starter
 

I'm about to circulate a workbook to quite a few people, and I only want them to look at one sheet. However, to avoid confusion/panic, I don't want to hide the other sheets as they'll think they've been lost.

Is there any way of locking the sheets so that they appear on theab list at the bottom, but they can't be selected/opened?


 
Posted : 17/04/2014 2:11 pm
Posts: 1781
Free Member
 

Protect the worksheet with "Select locked cells" unchecked.

I'm looking at '07 - it's in the Review tab on the ribbon


 
Posted : 17/04/2014 2:18 pm
 IHN
Posts: 19877
Full Member
Topic starter
 

You can still see the sheet that way though, you just can't do anything on it. I don't want them to be able to see the sheet at all, just the tab.


 
Posted : 17/04/2014 2:20 pm
Posts: 12330
Full Member
 

Hide all the rows in each tab so it's just blank, then lock.

HTH


 
Posted : 17/04/2014 2:22 pm
 IHN
Posts: 19877
Full Member
Topic starter
 

Then they'll be able to see a sheet that looks empty, which will freak them out just as much.


 
Posted : 17/04/2014 2:24 pm
Posts: 12330
Full Member
 

Senior management then 😀


 
Posted : 17/04/2014 2:24 pm
Posts: 12330
Full Member
 

Hide all the rows, apart from one which says:

Nothing
to
see
here


 
Posted : 17/04/2014 2:25 pm
Posts: 25873
Full Member
 

delete the contents of the rest and rename those tabs "deliberately removed", with a pop-up saying "nosey ****" when they try to open them


 
Posted : 17/04/2014 2:26 pm
Posts: 0
Free Member
 

Circulate the spreadsheet with the tabs hidden, but tell your colleagues that the other tabs are there but hidden for security/clarity etc?


 
Posted : 17/04/2014 2:26 pm
Posts: 77691
Free Member
 

Delete all the data on the other tabs apart from one cell saying "data redacted" or some such.

I think if it were me I'd just copy the info they're allowed to access into a fresh file.


 
Posted : 17/04/2014 2:29 pm
Posts: 13594
Free Member
 

Write a VBA Macro which stops them selecting another sheet and pops up a message box such as:

[url= https://farm8.staticflickr.com/7428/13888399526_5de0333cd3.jp g" target="_blank">https://farm8.staticflickr.com/7428/13888399526_5de0333cd3.jp g"/> [/img][/url][url= https://flic.kr/p/nagFjf ]You are not cleared..[/url] by [url= https://www.flickr.com/people/75003318@N00/ ]brf[/url], on Flickr


 
Posted : 17/04/2014 2:31 pm
Posts: 13594
Free Member
 

Here's a really simple Macro for you:

[url= https://farm8.staticflickr.com/7262/13888445296_815c4c8654.jp g" target="_blank">https://farm8.staticflickr.com/7262/13888445296_815c4c8654.jp g"/> [/img][/url][url= https://flic.kr/p/nagUVo ]Oh no you don't![/url] by [url= https://www.flickr.com/people/75003318@N00/ ]brf[/url], on Flickr

If you change the order round eg

Worksheet1.activate
msgbox("blah")

It will swap back instantly and then chastise them....


 
Posted : 17/04/2014 2:36 pm
Posts: 0
Free Member
 

Footflaps - if it were me on the receiving end of that Macro I'd be straight on the case to get round it to see what juicy info is being hidden. It's like when you get an outlook recall notice, the first thing you do is read the email to see why it needs to be recalled!

OP - Footflaps solution is neat but it requires the user to have activated macros on the workbook. Your comportate security settings may control this but by default the user has to accept to activate macros and the way the noticifcatino works from 2007 onwards means they are more likely not to activate the macro unless they need to.

I don't think it's possible to do what you want without coming up with some darstartdly way to force them to activate Macros.


 
Posted : 17/04/2014 3:27 pm
 iolo
Posts: 194
Free Member
 

Printscreen the spreadsheet as a pdf.
They will see the data you send them and all the tabs you have for the other sheet.


 
Posted : 17/04/2014 3:38 pm
 IHN
Posts: 19877
Full Member
Topic starter
 

Cheers all. I went for the "sod it, I'll split it into separate workbooks" option.


 
Posted : 17/04/2014 3:45 pm
Posts: 13594
Free Member
 

I don't think it's possible to do what you want without coming up with some darstartdly way to force them to activate Macros.

Quite easy to over ride this and take control of Excel. I bind all my .xslm in a .exe wrapper which over rides all the user settings and gives me total control of Office.

If you're interested I can highly recommend LockXLS: http://www.lockxls.com/product.asp


 
Posted : 17/04/2014 8:32 pm