View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Gary Keramidas[_4_] Gary Keramidas[_4_] is offline
external usenet poster
 
Posts: 226
Default How to determine which sheets appear on opening a workbook.

if i understand correctly, maybe something like this in the workbook open
event

Private Sub Workbook_Open()
If UCase(Environ("username")) = "GLENN" Then
Worksheets("sheet1").Visible = True
Else
Worksheets("sheet1").Visible = False
End If
End Sub

--


Gary Keramidas
Excel 2003


"Glenn" wrote in message
...
Is it possible to determine which sheets appear when a workbook is opened.
I
have a workbook with a number of hidden sheets that are updated by me from
time to time and I would like them to start off hidden when the workbook
is
opened by say, someone else on the network. I have toyed with the
Workbook
Open in VB but to no avail. Many thanks

Glenn