Open Document

Opens a document for reading or writing. It is a necessary before accessing the document file.


  • Path name of document file: Specifies the full path name of the document file.

  • Password to open Specifies the password to open the document, if the document type does not support the open password, the parameters will be ignored.

  • Password to modify Specifies the password to modify the document, if the document type does not support the write-protected password, the parameters will be ignored.

  • Open document for read-only Specifies whether to open the document for read only.

  • Show application when opening document It's only available for Microsoft Office. With this option checked, the program main window will show after opening the document.

  • Don't close window after closing document With the option checked, the application window will not be closed when closing document.

  • Save changes before closing document Specifies whether to save the changes before closing the document. The option is applied to the situation that there is no "Close Document" action after this action, otherwise, it depends on the option in the action "Close Document".

  • Document name Specifies a name for identifying a document from others, and other document related actions would use the name to reference the instance of the document.


  • To open a Microsoft Excel document, Microsoft Excel program must be present in the computer before playing a macro.
  • If opening the document failed, the global variable "error" will be set to "ERR".