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

setting up print option

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

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

Applying and removing border from cell in Excel 2010

Did you know the shortcut key for applying and removing the outline border for a cell?

CTRL+SHIFT+& Applies the outline border to the selected cells.
CTRL+SHIFT_ Removes the outline border from the selected cells.

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.1 secs.