Create a string constant, and type the following in it.
Sub Excel_Print()
'print the whole workbook
ActiveWorkbook.PrintOut Copies:=1, Collate:=True
End Sub
Using RG, use "Excel Import Module", "Run Macro" and "Remove Module" to execute this macro. Make sure you do not wire the error input for "Remove Module.vi". The module must be removed regardless error or not.
for single sheet (make sure the sheet is selected using "Get Worksheet.vi" from RG):
Sub Excel_Print()
'single sheet
ActiveWindow.SelectedSheets.PrintOut From:=1, To:=1, Copies:=1, Collate:=True
End Sub
IMPORTANT: In order for this work, in EXCEL, you need go to "Tools >> Macro >> Security", lower the security settings on both tabs.
-Joe