setting up print option

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 » Setting up a print option in VB

Setting up a print option in VB

resolvedResolved · Low Priority · Version 2003

Karen has attended:
Excel VBA Intro Intermediate course

Setting up a print option in VB

How can you set a print option in VB?

Thanks

RE: Setting up a print option in VB

Hi Karen

Thank you for your question

You can do this using the printout method of the active window object. You first need to write the code to select the sheet that you want printing and then use the following line of code

ActiveWindow.SelectedSheets.PrintOut Copies:=1


I suggest that you look up the printout method in the object browser to get a full understanding of its parameters

Regards

Stephen

 

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:

Printing spreadsheets without opening them first

Here's a fast way of printing a spreadsheet from Windows Explorer/My Computer.

Go to the location where the spreadsheet is saved on your computer, then right-click on the icon next to the document and select Print from the menu.

The spreadsheet will automatically open, print and close itself.

View all Excel hints and tips


Server loaded in 0.08 secs.