HTML Code:
Sub Remove_password()
Dim wkb1 As Workbook
Dim wksMACRO As Worksheet
Dim fso, f, fs, f1
Application.DisplayAlerts = False
ThisWorkbook.Activate
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.getfolder(ThisWorkbook.path)
Set fs = f.Files
For Each f1 In fs
If ThisWorkbook.Name <> f1.Name Then
Set wkb1 = Application.Workbooks.Open(ThisWorkbook.path & "\" & f1.Name, , , , "123", True)
wkb1.Password = ""
wkb1.Save
wkb1.Close
End If
Next
Application.DisplayAlerts = True
End Sub
Is it possible to pick up the Old & New Password's from particular cells in the worksheet (eg B1 & B2). I do not want the users to open and Edit the code.
Any Ideas?
Kindly Help
Thx-n-BR