How to make excel as password protected

Hi,

I have to provide password for an already existing excel, If password is already existing let it be … orelse we have to make that excel as password protected… How can I implement this using Invoke code in UiPath.Anyone can you please help to sort it out…
Below one is the workflow and the error screenshot…
PaswordProtected.zip (1.9 KB)

@Chippy_Kolot,

Follow this thread for how to check if password is already there for the file or not.

For adding password to excel file, refer this thread which uses VBA to password protect the file.

@Chippy_Kolot,

Here you go sample code

Sample Code:
PaswordProtected.zip (129.4 KB)

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.