ipbr21054
Well-known Member
- Joined
- Nov 16, 2010
- Messages
- 5,832
- Office Version
- 2007
- Platform
- Windows
Below is part of my full code.
It should print an invoice then ask if it printed ok.
If YES then continue to do the part in Red.
BUT if NO then print again & then do the part in RED
Currently both the print options work BUT the part in Red does nothing
It should print an invoice then ask if it printed ok.
If YES then continue to do the part in Red.
BUT if NO then print again & then do the part in RED
Currently both the print options work BUT the part in Red does nothing
Rich (BB code):
With ActiveSheet
'ActiveWindow.SelectedSheets.PrintOut copies:=1 'INVOICE NOW PRINTED
MsgBox "1st Print"
End With
answer = MsgBox("INVOICE HAS NOW BEEN SAVED" & vbNewLine & vbNewLine & "DID THE INVOICE PRINT OK FOR YOU ?", vbInformation + vbYesNo, "INVOICE PRINT OK MESSAGE")
If answer = vbNo Then
'ActiveWindow.SelectedSheets.PrintOut copies:=1 'INVOICE PRINTED AGAIN IF FIRST PRINT WAS POOR
MsgBox "2nd Print"
Range("L4").Value = Range("L4").Value + 1
Range("G27:L36").ClearContents
Range("G46:G50").ClearContents
Range("L18").ClearContents
Range("G13").ClearContents
Range("G13").Select
ActiveWorkbook.Save
End If
End With
End Sub