Can anyone suggest HOW to:
Make it just print the document instead of opening it?
or, just open THAT document, not two.
Thanks
Sub Compliments_Slips()
Dim inputCheck As Integer
inputCheck = MsgBox("Please select the PRINT option from MS Word to obtain the Compliment Slip's, then CLOSE down Word. Do NOT Save.", vbOKCancel)
If inputCheck = vbCancel Then
Exit Sub
End If
Shell "C:\Program Files\Microsoft Office\Office\WINWORD /automation", vbMaximizedFocus
AppActivate "Microsoft Word"
Set appword = GetObject(, "word.application")
With appword
.Documents.Add "C:\White Rose\Templates\WRS Compliments Slips.doc"
End With
End Sub
Make it just print the document instead of opening it?
or, just open THAT document, not two.
Thanks
Sub Compliments_Slips()
Dim inputCheck As Integer
inputCheck = MsgBox("Please select the PRINT option from MS Word to obtain the Compliment Slip's, then CLOSE down Word. Do NOT Save.", vbOKCancel)
If inputCheck = vbCancel Then
Exit Sub
End If
Shell "C:\Program Files\Microsoft Office\Office\WINWORD /automation", vbMaximizedFocus
AppActivate "Microsoft Word"
Set appword = GetObject(, "word.application")
With appword
.Documents.Add "C:\White Rose\Templates\WRS Compliments Slips.doc"
End With
End Sub