Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default Can a WorkSheet be proteced from deletion

Is there a way to prevent a user from deleting a given WorkSheet? Also, is
there a way to prevent the user from "UnHiding" a WorkSheet??

Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 222
Default Can a WorkSheet be proteced from deletion

Sheets hidden manually or hidden with a macro can still be unhidden, password
protecting the hidden sheet might make this harder, but still.

Now a macro that hides a worksheet using the xlVeryHidden flag cannot be
unhidden manually in any way. It can only be unhidden with another macro.

sub HideSheet1()
Sheets("Sheet1").Visible = xlVeryHidden
end sub

--
"Actually, I *am* a rocket scientist." -- JB

Your feedback is appreciated, click YES if this post helped you.


"Mike" wrote:

Is there a way to prevent a user from deleting a given WorkSheet? Also, is
there a way to prevent the user from "UnHiding" a WorkSheet??

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Can a WorkSheet be proteced from deletion


Mike;313562 Wrote:
Is there a way to prevent a user from deleting a given WorkSheet? Also,
is
there a way to prevent the user from "UnHiding" a WorkSheet??

ThanksProtecting the workbook structure should prevent sheet deletion.



--
Simon Lloyd

Regards,
Simon Lloyd
'The Code Cage' (http://www.thecodecage.com)
------------------------------------------------------------------------
Simon Lloyd's Profile: http://www.thecodecage.com/forumz/member.php?userid=1
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=87654

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default Can a WorkSheet be proteced from deletion

Thanks JB. Works great. Just what I wanted.


"JBeaucaire" wrote in message
...
Sheets hidden manually or hidden with a macro can still be unhidden,
password
protecting the hidden sheet might make this harder, but still.

Now a macro that hides a worksheet using the xlVeryHidden flag cannot be
unhidden manually in any way. It can only be unhidden with another macro.

sub HideSheet1()
Sheets("Sheet1").Visible = xlVeryHidden
end sub

--
"Actually, I *am* a rocket scientist." -- JB

Your feedback is appreciated, click YES if this post helped you.


"Mike" wrote:

Is there a way to prevent a user from deleting a given WorkSheet? Also,
is
there a way to prevent the user from "UnHiding" a WorkSheet??

Thanks





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default Can a WorkSheet be proteced from deletion

Thanks Simon. I kept thinking Protect Sheet rather than Protect WorkBook.
Works great.


"Simon Lloyd" wrote in message
...

Mike;313562 Wrote:
Is there a way to prevent a user from deleting a given WorkSheet? Also,
is
there a way to prevent the user from "UnHiding" a WorkSheet??

ThanksProtecting the workbook structure should prevent sheet deletion.



--
Simon Lloyd

Regards,
Simon Lloyd
'The Code Cage' (http://www.thecodecage.com)
------------------------------------------------------------------------
Simon Lloyd's Profile:
http://www.thecodecage.com/forumz/member.php?userid=1
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=87654





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Can a WorkSheet be proteced from deletion

On Sat, 18 Apr 2009 20:38:11 -0700, "Mike" wrote:

Is there a way to prevent a user from deleting a given WorkSheet? Also, is
there a way to prevent the user from "UnHiding" a WorkSheet??

Thanks

Right click on the worksheet name tab and select protect. Then use a
password that your user does not know. To prevent unhiding, protect the
entire workbook.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying data from a proteced worksheet WildWill[_2_] Excel Discussion (Misc queries) 1 March 24th 09 08:38 PM
protect worksheet but allow row deletion Tia Excel Worksheet Functions 3 December 11th 08 08:01 PM
deter worksheet deletion flintridge parkenfarker vonkerschnauzerheiden Excel Programming 3 August 12th 07 07:24 PM
PROTECED SHEETS lisad Excel Discussion (Misc queries) 0 March 29th 07 03:32 PM
resequence worksheet index after deletion of worksheet tango Excel Programming 2 November 29th 04 11:23 AM


All times are GMT +1. The time now is 10:55 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"