hello
I have this macro . what I want when print repeatedly after first time it should show message "the data has already printed", do you want printing again? and gives me two choices if press ok print , if press no nothing happens.
Sub sPrint()
Set sh = Sheets("print")
With sh
If .Range("b2") = "" Then
MsgBox "there is no data ", vbInformation + vbMsgBoxRight, "print "
Exit Sub
End If
Last = .Cells(.Rows.Count, 6).End(xlUp).Row
.PageSetup.PrintArea = "a1:f1" & Last
.PrintOut
End With
End Sub