View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
hecsan07 hecsan07 is offline
external usenet poster
 
Posts: 5
Default Unprocteting a Workbook

I want to write a macro that unprotects a document when the Workbook opens
up. I know the password of the Workbook, but the code I have does not work.
Here's what I have:

Sub ThisWorkbook_Open()
ActiveWorkbook.Unprotect Password:="1234"
End Sub