Forum Discussion

defcrash's avatar
defcrash
Copper Contributor
Oct 04, 2023
Solved

Excel file encrypt with password thru Office Scripts

Hi all,   I'm trying to automate adding a password to open an Excel file thru Office Scripts but it's being very difficult to me! I can do it with macros (VBA) but because the password must be adde...
  • JKPieterse's avatar
    Oct 04, 2023
    I'm afraid the answer is a simple blunt no, cannot be done. Office script cannot "handle files" in any way. It only works on the current document but cannot change things like the document name or encryption.

Resources