A family of Microsoft word processing software products for creating web, email, and print documents.
Assuming that the documents are Encrypted, Use
While myFile <> ""
'Open document
Set myDoc = Documents.Open(filename:=PathToUse & myFile, PasswordDocument:=strPassword)
myDoc.EncryptionProvider = "" myDoc.SaveAs SavePath & myFile
myDoc.Close
'Next file in folder
myFile = Dir$()
Wend
However, if the protection was applied by using the Restrict Editing facility, then use
While myFile <> ""
'Open document
Set myDoc = Documents.Open(filename:=PathToUse & myFile, PasswordDocument:=strPassword)
myDoc.ProtectionType = wdNoProtection myDoc.SaveAs SavePath & myFile
myDoc.Close
'Next file in folder
myFile = Dir$()
Wend