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

print sheets button

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

Print Sheets Button

ResolvedVersion 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:

Do a fast scroll

In big Excel databases with many records, you can move down thousands of rows super-fast as follows: hold down Shift then click on the scrollbar somewhere below the scrollbar handle. This will move you way down the sheet without your having to use the scrollbar up/down arrows or drag on the scrollbar handle.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.