• 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 Button On excel

saadferoze

New Member
I would like to add a print button on excel sheet, so i can click it and sheet gets printed. What code should io assign to button if name of button is PRINT. Please suggest


Regards

Saad
 
Saad


Just a simple macro will do it

[pre]
Code:
Sub PrintMe()
ActiveWindow.SelectedSheets.PrintOut Copies:=1
End Sub
[/pre]

The above assume you have already defined a Print Area and have the default printer setup correctly


Then assign the Macro to your Button
 
Back
Top