Skip to content

Close Word

Function Description

TIP

Close Word

Close Word

Configuration Item Description

General

Command Input

  • OperationInteger: Choose whether to close a specified Word file or close all Word files

  • Word objectTDocumentApplication: Enter a Word object created by the 'Open or Create Word' function

  • Close processInteger: Close process

  • Terminate Word processBoolean: If checked, it will forcefully end the specified Word process for the current user and all its child processes

  • Close typeInteger: Close type

  • Word file pathstring: Enter or select the Word file path to open

  • Cover if file existsBoolean: If the file already exists and you choose not to cover it, an error will be prompted that the file already exists

Command Output

No output for the current command

Advanced

  • Delay Before(milliseconds)Integer: The waiting time before instruction execution

Error Handling

  • Print Error LogsBoolean: Whether to print error logs to the "Logs" panel when the command fails. Default is checked.

  • Handling MethodInteger:

    • Terminate Process: If the command fails, terminate the process.

    • Ignore Exception and Continue Execution: If the command fails, ignore the exception and continue the process.

    • Retry This Command: If the command fails, retry the command a specified number of times with a specified interval between retries.

Usage Example

Process logic description:

Common Errors and Handling

None

Frequently Asked Questions

None