Same question
is it possible to disable to deletion of worksheet in a workbook ?
Thanks for your help
Same question
is it possible to disable to deletion of worksheet in a workbook ?
Thanks for your help
Bonjour François,
If you password protect your workbook, then you can't add or delete a
worksheet.
Hope this was helpful
Denys
"François" wrote:
> Same question
> is it possible to disable to deletion of worksheet in a workbook ?
>
> Thanks for your help
>
>
>
Bit kludgy, but seems to work
Private Sub Workbook_NewSheet(ByVal Sh As Object)
Application.DisplayAlerts = False
Sh.Delete
Application.DisplayAlerts = True
End Sub
'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code
--
HTH
Bob Phillips
"François" <[email protected]> wrote in message
news:[email protected]...
> Same question
> is it possible to disable to deletion of worksheet in a workbook ?
>
> Thanks for your help
>
>
>
Using menu Goto
Tools -> Protection -> Protect Workbook
Make sure Structure is checked.
Programatically
ThisWorkbook.Protect Structure:=True
Regards,
Jayant
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks