J
JayM
I have a 3 macros Print_Thin_Duplex, Print_Thin_Duplex_x2 and
Print_Thin_Duplex_x3
The code for each is along the lines of:
Sub Print_Thin_Duplex()
PrintType = "Print_Thin_Duplex"
frmDuplex1.Show
End Sub
This opens up a form which has the following code on the Click command:
Private Sub CmdOK_Click()
Dialogs(wdDialogFilePrint).Show
frmDuplex1.Hide
If PrintType = "Print_Thin_Duplex" Then
Print_Thin
ElseIf PrintType = "Print_Thin_Duplex_x2" Then
Print_Thin
Print_Thin
ElseIf PrintType = "Print_Thin_Duplex_x3" Then
Print_Thin
Print_Thin
Print_Thin
Else: MsgBox ("Oh .......")
End If
frmDuplex2.Show
End Sub
Print_thin macro just changes the paper tray and prints the document.
Unfortunately I can't get this work. Where am I going wrong. I don't know
how to find where the error occurs. The Msgbox does pop up and so does me
frmDuplex2
Any help would be greatly appreciated.
Print_Thin_Duplex_x3
The code for each is along the lines of:
Sub Print_Thin_Duplex()
PrintType = "Print_Thin_Duplex"
frmDuplex1.Show
End Sub
This opens up a form which has the following code on the Click command:
Private Sub CmdOK_Click()
Dialogs(wdDialogFilePrint).Show
frmDuplex1.Hide
If PrintType = "Print_Thin_Duplex" Then
Print_Thin
ElseIf PrintType = "Print_Thin_Duplex_x2" Then
Print_Thin
Print_Thin
ElseIf PrintType = "Print_Thin_Duplex_x3" Then
Print_Thin
Print_Thin
Print_Thin
Else: MsgBox ("Oh .......")
End If
frmDuplex2.Show
End Sub
Print_thin macro just changes the paper tray and prints the document.
Unfortunately I can't get this work. Where am I going wrong. I don't know
how to find where the error occurs. The Msgbox does pop up and so does me
frmDuplex2
Any help would be greatly appreciated.