Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Karen
 
Posts: n/a
Default Prevent Worksheet Deletions

Is there a way to prevent a user from deleting certain worksheets yet still
being able to insert new worksheets?

Thanks,
Karen........
  #2   Report Post  
Gord Dibben
 
Posts: n/a
Default

Karen

Not without using VBA.

You would have the workbook protected to prevent deleting sheets.

Run a macro which would unprotect the workbook and add a given or chosen
number of sheets then reprotect the workbook.

Record a macro while you go through the above steps to add one sheet.

Will look something like this.

Sub Sheets_Add()
Dim i As Long
Application.ScreenUpdating = False
ActiveWorkbook.Unprotect Password:="justme"
howmany = InputBox("Number of Sheets to insert")
For i = 1 To howmany
Sheets.Add
Next i
ActiveWorkbook.Protect Password:="justme", Structu=True
Application.ScreenUpdating = True
End Sub


Gord Dibben Excel MVP

On Mon, 12 Sep 2005 12:05:07 -0700, "Karen"
wrote:

Is there a way to prevent a user from deleting certain worksheets yet still
being able to insert new worksheets?

Thanks,
Karen........


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
How do I prevent users to delete a worksheet, but allow to edit? [email protected] Excel Discussion (Misc queries) 2 September 1st 05 08:37 PM
Prevent unhide of rows/columns w/out worksheet protection? annonymous Excel Discussion (Misc queries) 2 March 10th 05 07:23 PM
Copy from worksheet to another x times Union70 Excel Discussion (Misc queries) 0 March 7th 05 09:03 PM
can you prevent viewing of specific columns in a worksheet Tamara Excel Worksheet Functions 1 January 19th 05 04:12 PM
copyright and worksheet protection dow Excel Discussion (Misc queries) 2 January 3rd 05 03:07 PM


All times are GMT +1. The time now is 12:17 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"