DriveWorks Pro 15: Excel Workbook [send feedback...]

Excel Workbook

This document type is used to export data directly in to a sheet in a Microsoft Excel Workbook from the DriveWorks project.

To work effectively the sheet to export the data to should contain named cells. DriveWorks will recognize the named cells and allow rules to be built for the values to export.

DriveWorks can use .xls, .xlsx and .xlsm files.
Files saved as an .xlsx are the quickest to generate as DriveWorks does not need to open Excel.

To Add an Excel Workbook document:

In DriveWorks Administrator open the project the document is to be applied and go to Stage4: Output Rules> Documents

  1. Click the "Add" button on the command bar.
  2. Choose the Excel Workbook document from the list on the Add Document wizard.
  3. Give the new document a name.
  4. Click "Next" and then Browse to the location of the excel file using the "Browse" button.
  5. Select the file and click Open and the click "Finish".

To Edit an Excel Workbook:

  1. The Master Workbook Path is the location of the master file, which can be browsed to if the location of the file changes by clicking the "Browse..." button.
  2. The Document Name is the name that will be given to the newly created file. This can be built by clicking the "Build..." button.
  3. The Document Path is the location where the new copied file is going to be stored. This can be built by clicking the "Build..." button.
  4. The Named Ranges is a range of cells that DriveWorks will write information into. The rules for the named ranges can by built by selecting the named range from the list and  clicking the "Build..." button. The data can also be refreshed to bring in new named ranges by clicking the "Refresh" button.
  5. DriveWorks can create a HTML version of the document to open in a web browser by checking the "HTML Output" option in the General Settings.
  6. The General Setting, Hide from document list is used to hide the document from the document list in the Specification Explorer.

The Document Name will need to be unique if the document is created in the same location for each specification, otherwise existing documents will be overwritten.
The Document can be Deleted if it is not required by making the result of the document name return Delete.
At any point a HTML preview can be created by clicking the "Preview" button on the command bar.
If the Document Path is not set then the file will be created in the specification folder.

How to create a Named Range in Excel

  1. Open the Excel Workbook and select the cell that is to be the Named Range.
  2. Activate the Formulas tab and open the Define Name dialog.
  3. Give the cell a unique name and click 'OK'.
  4. Save and close the workbook.

Running Macros on an Excel Workbook Document

DriveWorks will automatically execute a macro called CreateReports, after driving all the captured cells and prior to the new document being saved.

The CreateReports macro must exist in a module named DriveWorks, in the VBA Project for the document.

The  Excel Workbook document is triggered in the specification flow by the Release Documents task.

Table of Contents