Sheet Tabs

Fred13x

New Member
Joined
Apr 23, 2002
Messages
4
Can I show one sheet tab and hide the others? I have items on 3 sheets but only want the user to see sheet 1.
 

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.
A couple ways to do it:

(1) Format: Sheet: Hide
(2) In VBA: Sheets("Sheet1").visible=false
 
Upvote 0
You just want to hide the other 2 sheets?

The manual approach is to select the 2 sheets (by holding CTRL or Shift) then go use your Format Menu-Sheets-Hide.

Of course if the ppl you send this to also know excel they could easily go to formatsheetsunhide unless you use some passworded sheet protection.

Hope that helps somewhat, -please reply if you were actually shooting for something more complex though.

Adam
 
Upvote 0
Yes a little more complex so that the casual user cant make the changes. Im guessing the use of some VB. And what about unhiding them? Thanks again.
 
Upvote 0
For VBA the code is something like this to hide all but the first sheet

Dim ws as Worksheet
For Each ws in ActiveWorkbook.Worksheets
If ws.index>1 then
ws.visible=x1SheetVeryHidden
'=x1SheetVisible to undo
End if
Next ws
 
Upvote 0
Can this be done so that the user can not go back and select unhide from the menu?
This message was edited by fred13x on 2002-04-24 09:33
 
Upvote 0

Forum statistics

Threads
1,213,522
Messages
6,114,112
Members
448,549
Latest member
brianhfield

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