Thread: Delete Macro
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
Pamela[_3_] Pamela[_3_] is offline
external usenet poster
 
Posts: 8
Default Delete Macro

Hi Guys!!!
I added this code this code and now I want to delete it:

Private Sub Workbook_Open()
'If you have different passwords
'for each Worksheet.
Sheets(1).Protect Password:="Secret", _
UserInterFaceOnly:=True


Sheets(3).Protect Password:="Secret", _
UserInterFaceOnly:=True


'Repeat as needed.
End Sub

I when inside (alt F11) and selected and delete but when I reopen the
workbook still is protected.
How I can delete the proteccion from the workbook?

thank you:
Pamela xoxo