Excel Print Dialog Box

I have written some LotusScript code that generates an Excel spreadsheet. When the code is finished, I would like to present the user with the Excel print dialog box. I have not found a way to do this. I have only found a method that will send to spreadsheet to a printer without giving the user an opportunity to change any of the print options.

Am I missing something?

Subject: Excel Print Dialog Box

Use a windows-send-key-function:

In LotusScript under ‘Declarations’:

Declare Sub keybd_event Lib “user32.dll” (Byval bVk As Integer, Byval bScan As Integer, Byval dwFlags As Integer,Byval dwExtraInfo As Integer)

An example-Script:

keybd_event &H11,0,0,0 ’ &H11 Ctrl down

keybd_event &H50,0,0,0 ’ &H11 P down

keybd_event &H11,0,2,0 ’ &H11 Ctrl up

For further key-information look at:

http://www.paris-pc-gis.com/mb_r/dll/pages_user/virtual_key_codes.htm