Open a Word document from Excel and change its password
Hi everyone,
Could anybody tell me how to open a word document from within an
Excel macro and put a read only password, save and close the document,
return focus back to excel. I have the following codes in mind....
ActiveDocument.Password = "mypassword"
ActiveDocument.save
ActiveDocuemnt.close
|