Hi all?
How to make a Loop for Print?
Private Sub cmdReturn_Click()
Dim ws As Worksheet
Dim mybox As Variant
mybox = InputBox("How many copies?")
If mybox = "" Then
MsgBox ("No number of copies")
Else
With Sheets("MrrPrint")
'.PrintPreview
.PrintOut Copies:=mybox
End With
s = MsgBox("Do You want to Exit?", vbYesNo, Question) ' If NO it will return to start printing msgbox show ("Mybox=Inputbox(How many copies?") will show again
If s = vbYes Then
'delete all
With ws
'Union(.Range("B13:O17"), .Range("C16:C17"), .Range("K16:K17"), .Range("O16:O17"), .Range("A24:Q40"), .Range("M48:m50")) = vbNullString 'Not working
Range("B13:O17") = ""
Range("C16:C17") = ""
Range("K16:K17") = ""
Range("O16:O17") = ""
Range("A24:Q40") = ""
Range("M48:m50") = vbNullString
'Range (B13:
End With
end Sub
Bookmarks