How Do I Get CX-Supervisor To Print Out An Excel Spreadsheet Using VBScript?

Modified on Sun, 11 May, 2025 at 10:28 PM

The following VBScript will print out the contents of a worksheet in Excel from CX-Supervisor:
 
' Launch Excel
dim app
set app = createobject("Excel.Application")
       
' Open workbook
dim wb
set wb = app.Workbooks.Open("D:\CX-SupervisorApps\mysheet.xls")
    
app.application.sheets(1).printout

'Close, quit and tidy up
app.Workbooks.Close
app.Quit
Set app =
Nothing

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article