Prev: Accessing a linked file in a Word document using VBA
Next: Spell Check should notify me if I keep spelling a word wrong
From: JeffJ on 22 Dec 2009 17:56 If I have a document that has encryption turned on. When I do file - save as: if I save to a directory that doesn't have encryption turned on the directory it saves it without encrypting - Desired effect. When I use ActiveDocument.SaveAs it makes an encrypted file copying the state of the original file. Even if I put desktop.ini with [Encryption] Disable=1 in the directory it ignores that too and still encrpts fle. Issue is from opening word attachment in email after EFS assistant has encrypted many directories and running a macro to save to a directory with specifitc name for a purchased system. So ActiveDocument.SaveAs doesn't work the same as File - Save As. This seams to be a bug in regards to word interaction with encrypted file system. Is there a work around anyone knows?
From: JeffJ on 23 Dec 2009 10:31
Still think it is a bug but added: ActiveDocument.Close jnk = Shell("cipher /d " & TmpName & ".doc", 0) to end of macro to decrypt doc. "JeffJ" wrote: > If I have a document that has encryption turned on. > When I do file - save as: if I save to a directory that doesn't have > encryption turned on the directory it saves it without encrypting - Desired > effect. > > When I use ActiveDocument.SaveAs it makes an encrypted file copying the > state of the original file. > Even if I put desktop.ini with > [Encryption] > Disable=1 > in the directory > it ignores that too and still encrpts fle. > > Issue is from opening word attachment in email after EFS assistant has > encrypted many directories and running a macro to save to a directory with > specifitc name for a purchased system. > > So ActiveDocument.SaveAs doesn't work the same as File - Save As. > > This seams to be a bug in regards to word interaction with encrypted file > system. > > Is there a work around anyone knows? |