Use the Read table action to extract data from a table in a Word document and store it in a data table variable. This action supports reading the full table or specific range of rows and columns, with an option to include the column headers.

Considerations

An error is displayed if any of the following conditions are encountered when you deploy your automation to read some text from the Word document:
  • The session name that you have specified is invalid.
  • The Word document is empty and does not contain any table or content.
  • The table name is invalid.
  • The row or column number of the table that you have provided is out of range.

Settings

  • Use the Session name field to click one of the following options to provide session name:
    • Session name: Enter the name that you gave the session when you opened it.
    • Variable: Select the variable that you have created to store the session name.
  • In the Table title field, enter the name of the table that you want to read from the Word document.
  • Click the Range drop-down menu to specify the part or portion of the table that you want to read, such as:
    • Full table: Reads the entire table.

      This is the default setting.

    • Rows & columns: Reads the specific rows and columns based on the following details that you provide:
      • Start row number
      • End row number
      • Start column number
      • End column number
      Ensure that you specify the row and column numbers correctly.
  • (Optional) Select the Include column headers check box to specify whether the first row of your data must be treated as column headers.
    Note: The number of rows and columns that can be added depends on the maximum limit supported by Microsoft Word.
  • (Optional) Click the Assigned table to variable drop-down menu to assign the extracted data to an existing data table variable.

    If you have not created a data table, click the Create variable icon.