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

STL - Formerly Best Training Solutions Through Learning
TrustPilot
Excellent
Request Callback We will call you back
0207 987 3777 Call for assistance
Your Basket Basket is empty
vba code printing documents

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » VBA code for printing documents

VBA code for printing documents

ResolvedVersion 2003

Eoin has attended:
Excel VBA Intro Intermediate course

VBA code for printing documents

I would like to add some code at the end of a macro to print the excel page(s) I'm working on, could you please let me know how I do this?

RE: VBA code for printing documents

Hi Eoin, thanks for your query. The simplest way to get the code to do this is to record a macro of you printing the spreadsheet. Try this code at the end of your subroutine, it should print out the active worksheet:

ActiveWindow.SelectedSheets.PrintOut Copies:=1

Hope this helps,

Anthony

Excel tip:

Get to the end of the used range

What

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.