Prev: Word does not update links automatically
Next: freeze
From: JeffG on 1 Jun 2010 10:19 I want to create a macro that in certain situations will encrypt the current document such that when the document is saved and opened again, Word will ask for the password (similarly to the user selecting the Office Button -> Prepare -> Encrypt Document). Would someone tell me how this can be done? Thanks for any help.
From: "Tony Jollans" My forename at my surname dot on 1 Jun 2010 11:43 To set a password ... ActiveDocument.Password = "whatever" To save with a password ... ActiveDocument.SaveAs name_etc., Password:="whatever" -- Enjoy, Tony www.WordArticles.com "JeffG" <JeffG(a)discussions.microsoft.com> wrote in message news:00FD01C1-E5E9-4D8B-98C2-28E616BDFFED(a)microsoft.com... >I want to create a macro that in certain situations will encrypt the >current > document such that when the document is saved and opened again, Word will > ask > for the password (similarly to the user selecting the Office Button -> > Prepare -> Encrypt Document). > > Would someone tell me how this can be done? Thanks for any help. >
From: JeffG on 2 Jun 2010 08:40 Thanks for the response. That worked beautifully, but raises another question. how good is the encryption and how easily can it be broken? "Tony Jollans" wrote: > To set a password ... > > ActiveDocument.Password = "whatever" > > To save with a password ... > > ActiveDocument.SaveAs name_etc., Password:="whatever" > > -- > Enjoy, > Tony > > www.WordArticles.com > > "JeffG" <JeffG(a)discussions.microsoft.com> wrote in message > news:00FD01C1-E5E9-4D8B-98C2-28E616BDFFED(a)microsoft.com... > >I want to create a macro that in certain situations will encrypt the > >current > > document such that when the document is saved and opened again, Word will > > ask > > for the password (similarly to the user selecting the Office Button -> > > Prepare -> Encrypt Document). > > > > Would someone tell me how this can be done? Thanks for any help. > > > > . >
From: Doug Robbins - Word MVP on 2 Jun 2010 18:59 If you use a strong password, it will be strong. If you use a weak one, it will be weak. The stronger the password, the stronger the protection. -- Hope this helps. Please reply to the newsgroup unless you wish to avail yourself of my services on a paid consulting basis. Doug Robbins - Word MVP, originally posted via msnews.microsoft.com "JeffG" <JeffG(a)discussions.microsoft.com> wrote in message news:EC7C5616-1AAE-4AE4-A00B-74F099A15BC1(a)microsoft.com... > Thanks for the response. That worked beautifully, but raises another > question. how good is the encryption and how easily can it be broken? > > "Tony Jollans" wrote: > >> To set a password ... >> >> ActiveDocument.Password = "whatever" >> >> To save with a password ... >> >> ActiveDocument.SaveAs name_etc., Password:="whatever" >> >> -- >> Enjoy, >> Tony >> >> www.WordArticles.com >> >> "JeffG" <JeffG(a)discussions.microsoft.com> wrote in message >> news:00FD01C1-E5E9-4D8B-98C2-28E616BDFFED(a)microsoft.com... >> >I want to create a macro that in certain situations will encrypt the >> >current >> > document such that when the document is saved and opened again, Word >> > will >> > ask >> > for the password (similarly to the user selecting the Office Button -> >> > Prepare -> Encrypt Document). >> > >> > Would someone tell me how this can be done? Thanks for any help. >> > >> >> . >>
|
Pages: 1 Prev: Word does not update links automatically Next: freeze |