Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Protect individual worksheets from deletion

Using ThisWorkbook.Protect() protects the workbook structure from changing so
that no Worksheets can be added or deleted. I would like to protect certain
Worksheets from being deleted but not others. That is, I create some
Worksheets dynamically that I want users to be able to delete if necessary.
However, the five basic Worksheets need to be protected from deletion.

Is this possbile? If so, how.

Thanks,
John
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Protect individual worksheets from deletion

Maybe you could give the users a dedicated macro that only delete the worksheets
that you want???

ejm3 wrote:

Using ThisWorkbook.Protect() protects the workbook structure from changing so
that no Worksheets can be added or deleted. I would like to protect certain
Worksheets from being deleted but not others. That is, I create some
Worksheets dynamically that I want users to be able to delete if necessary.
However, the five basic Worksheets need to be protected from deletion.

Is this possbile? If so, how.

Thanks,
John


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default Protect individual worksheets from deletion

John,
A bit drastic, but might work for you...

In the Workbook_BeforeSave event, check for the existence of the five
sheets. It they are not all there then close the workbook without saving...

Cancel = True
This Workbook.Close SaveChanges:=False
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware


"ejm3"
wrote in message
Using ThisWorkbook.Protect() protects the workbook structure from changing so
that no Worksheets can be added or deleted. I would like to protect certain
Worksheets from being deleted but not others. That is, I create some
Worksheets dynamically that I want users to be able to delete if necessary.
However, the five basic Worksheets need to be protected from deletion.

Is this possbile? If so, how.

Thanks,
John
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default Protect individual worksheets from deletion

Hi ,

How is everything going? Please feel free to let me know if you need any
assistance.

Sincerely,

Wei Lu
Microsoft Online Community Support

==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

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
protect worksheet but allow row deletion Tia Excel Worksheet Functions 3 December 11th 08 08:01 PM
Protect files from deletion jayewink Excel Discussion (Misc queries) 3 July 24th 08 09:37 PM
Protect worksheet from deletion Richard Excel Discussion (Misc queries) 1 July 17th 06 03:38 PM
Protect Comments from deletion aehan Excel Programming 1 March 17th 06 04:13 PM
password protect individual worksheets Nick Excel Discussion (Misc queries) 3 June 28th 05 03:43 PM


All times are GMT +1. The time now is 10:22 PM.

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

About Us

"It's about Microsoft Excel"