Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dear NG,
Please help me. I am trying to remove the "password to open a workbook" using the code below. Although, it runs well during execution and does not show any error messages, when I try to manually open my workbooks, it still ask for password. TIA Jon-jon Sub RemoveOpenPassword(myFilepath As String, myFilename As String, _ myOpenPassword As String, myWritePassword As String) Dim Wb As Workbook Set Wb = Workbooks.Open(Filename:=myFilepath & "\" & myFilename, Password:=myOpenPassword, _ WriteResPassword:=myWritePassword, AddToMru:=False) With Wb .Password = "" .Close True End With Set Wb = Nothing End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
removing password protection | Excel Discussion (Misc queries) | |||
Removing a password | Excel Discussion (Misc queries) | |||
removing excel sheet password | New Users to Excel | |||
Removing an open file password protection | Excel Worksheet Functions | |||
Removing Excel password. | Excel Programming |