View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
RosH RosH is offline
external usenet poster
 
Posts: 13
Default 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