PC Review Forums Newsgroups Microsoft Excel Microsoft Excel Setup Hiding Worksheets

Reply

Hiding Worksheets

 
Thread Tools Rate Thread
Old 11-01-2005, 12:59 PM   #1
=?Utf-8?B?Sm8gRGF2aXM=?=
Guest
 
Posts: n/a
Default Hiding Worksheets


Can you hide some worksheets within a workbook from some users.
  Reply With Quote
Old 11-01-2005, 04:48 PM   #2
Guest
 
Posts: n/a
Default Hiding Worksheets

yes
but only if they open the file from the machine they are
logon to.
in the workbook open event:

Sub macHideSheets()
If CreateObject("Wscript.Network").UserName = "name" Then
Worksheets("Sheet1").Visible = xlVeryHidden
End If
End Sub
you may need to add a few ORs, 1 for each user you want to
hide sheets from and a line for each sheet you wish to
hide.
note: using the xlveryhidden command will not let you
unhide the sheet through the menus so in the workbook
before close event:
Sub macUnHideSheets()
Worksheets("Sheet1").Visible = true
End Sub


>-----Original Message-----
>Can you hide some worksheets within a workbook from some

users.
>.
>

  Reply With Quote
Old 12-01-2005, 12:32 AM   #3
peter
Guest
 
Posts: n/a
Default Hiding Worksheets

Hi,
Not without a macro. Otherwise format|sheet|hide.
peter
pandemar@hotmail....com
>-----Original Message-----
>Can you hide some worksheets within a workbook from some

users.
>.
>

  Reply With Quote
Old 13-01-2005, 11:02 PM   #4
Jack in the UK
Guest
 
Posts: n/a
Default Re: Hiding Worksheets


Sure select the tab of the worksheet you wish to hide, click Format
Sheet and clik on hide.

This is the most basic and simplist way to hide a sheet, reverse thi
to unhide to show the once hidden sheet

VBA is better thou:

Jac


-
Jack in the U
-----------------------------------------------------------------------
Posted via http://www.mcse.m
-----------------------------------------------------------------------
View this thread: http://www.mcse.ms/message1341880.htm


  Reply With Quote
Old 13-01-2005, 11:15 PM   #5
Jack in the UK
Guest
 
Posts: n/a
Default Re: Hiding Worksheets


Please have a look at a post i made earlier

http://www.mcse.ms/message1343219.html

Jack



--
Jack in the UK
------------------------------------------------------------------------
Posted via http://www.mcse.ms
------------------------------------------------------------------------
View this thread: http://www.mcse.ms/message1343227.html



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off