Handle Password-Protected Files and Excel Lock

This topic describes how Process Runner handles password-protected files and Excel lock scenarios. It is possible that the Excel file that you want to use with Process Runner is password-protected or contains a macro and Excel shows the confirmation prompt before you can open and use such a file. Sometimes, the Excel file is already opened while Process Runner is attempting to read or write to that Excel file.

The following table describes the most common scenarios and how Process Runner handles them.

Excel file scenario

Process Runner Prompt

User Action

Recommendation

Excel file in Edit or Lock mode

Process Runner waits until the lock is released

Go to Excel and release the lock and wait. Process Runnerautomatically retries and continues

Do not edit or do not lock the Excel file while Process Runner is running.

Excel file / Sheet is password-protected

Process Runner waits until you enter the password.

Enter the password to ensure that Process Runner can continue.

If the sheet is password-protected, remove the password on the sheet.

Password-protected sheets cannot be used in Scheduler unless the file is already opened by the user and the password protection is removed.

Excel file with macro

Process Runner works normally when you respond to the Excel prompts.

Respond to the Excel prompt to open the file with macro.

Excel file with macro cannot be used in Scheduler if the Excel prompts have to be answered. Do not run the macro while Process Runner is running.

Excel file in lock mode due to problems in dynamic skip or dynamic formula

Process Runner works normally after you correct the dynamic formula or dynamic skip.

Make changes to the incorrectly written dynamic formula or dynamic skip.

Do not edit or lock the Excel file while Process Runner is running.

In the following sections, these scenarios are explained.