• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Print Yes Or No

delta

Member
in Invoice sheet i create a button like "ADD DATA" when i click on button the data will be copy in sheet 2 and then ask me print invoice "YES" OR "NO" in sheet "Invoice Sheet" when yes then print invoice and no then do not print invoice with vba macro only.
and i do not create a another button do this only "ADD DATA" BUTTON.
 
Try this
Code:
Sub Test()

If Vbyes= True Then

ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
End If
End Sub
 
Back
Top