+ Reply to Thread
Results 1 to 2 of 2

Disable Insert/Delete Worksheet

Hybrid View

  1. #1
    Registered User
    Join Date
    01-06-2012
    Location
    Minnesota, USA
    MS-Off Ver
    Excel 2010, Excel 365
    Posts
    49

    Disable Insert/Delete Worksheet

    Is there code to disable a user from inserting/deleting worksheet?

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Disable Insert/Delete Worksheet

    I can help with disallow a user to insert a new sheet but I am not smart enough to come up with a solution for disallow a user to delete a worksheet... Sorry.

    Private Sub Workbook_NewSheet(ByVal Sh As Object) 
        With Application 
            .DisplayAlerts = False 
            .ScreenUpdating = False 
        End With 
        Sh.Delete 
        With Application 
            .DisplayAlerts = True 
            .ScreenUpdating = True 
        End With 
    End Sub

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1