Skip to content

Position Word cursor

Function Description

TIP

Position the cursor at the specified location in the Word document

Position Word cursor

Configuration Item Description

General

Command Input

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

  • Relative toInteger: Select positioning type

  • Text contentstring: The text to be located

  • Text locationInteger: The location where the text appears

  • Search from the beginningBoolean: If checked, search from the beginning; otherwise, search from the current position

  • Bookmark namestring: Bookmark name

  • Position the cursor atInteger: Choose whether to position the cursor before or after the text

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