Security/Protection/Hiding WorkSheets

J

Jeff

My workbook contains 7 sheets.

I would like only one sheet to be visible to users, which they will use to
enter info (one cell from data validation list) which will then display
results.

Suggestions Please?

thanks!
 
M

mick22306

My workbook contains 7 sheets.

I would like only one sheet to be visible to users, which they will use to
enter info (one cell from data validation list) which will then display
results.

Suggestions Please?

thanks!

Jeff,
One possible solution: right click on any tab and pick "view code";
that will open Microsoft Visual Basic window. on the upper left side
you'll see your sheets listed under "VBAProject\Microsoft Excel
Objects". Left click on any of the those listed sheets; on the lower
left part of the window, (Properties Sheet) on the bottom line you'll
see "Visible". Pull down the menu next to "visible" and select "0" or
"2" for "hidden" or "veryhidden" respectively. repeat that for all
the sheets you want to hide. Then close out visual basic and your
sheets should be hidden.
Hope that works as you need
-JoelS
 
M

Michael

Modify this to suit your needs; this will hide all sheets except Sheet1:

Sub hideme()

Dim wk As Worksheet
For Each wk In Worksheets
If wk.Name <> "Sheet1" Then
wk.Visible = False
End If
Next wk

End Sub
 
J

Jeff

Thanks guys!
--
Jeff


Michael said:
Modify this to suit your needs; this will hide all sheets except Sheet1:

Sub hideme()

Dim wk As Worksheet
For Each wk In Worksheets
If wk.Name <> "Sheet1" Then
wk.Visible = False
End If
Next wk

End Sub

--
If this posting was helpful, please click on the Yes button.
Regards,

Michael Arch.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top