Print and Close

S

SITCFanTN

I'm using this code for a command button to open the print diolog box and
then close the form without saving it after it prints however it is not
working properly. The print dialog box displays but after I select my
printer, the document does not print. Any suggestions on why this is not
working. Thank you.

Private Sub CommandButton1_Click()

Dialogs(wdDialogFilePrint).Display

ActiveDocument.Close wdDoNotSaveChanges


End Sub
 
D

Doug Robbins - Word MVP

Use

Dialogs(wdDialogFilePrint).Show

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top