print sheets button

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Print Sheets Button

Print Sheets Button

resolvedResolved · Medium Priority · Version 2007

Mark has attended:
Excel VBA Advanced course

Print Sheets Button

Hello,
I have entered the following code to a print button, but it does not run. Any ideas why not?

Sub Button2_Click()
'Print All Sheets
ActiveWorkbook.Worksheets.PrintOut Copies:=1

End Sub

Regards
Mark

 

Training courses

 

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Excel tip:

Shortcut for accessing recently opened files

To get into recently opened Excel files without using your mouse, hold down Alt + F to open the File menu.

Recently opened files are listed down the bottom of the File menu - type in the number next to the file you wish to open and it should appear on your screen.

View all Excel hints and tips


Server loaded in 0.08 secs.