[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Excel VBA - print A3 or A4

Posted on 2011-05-10
1
Medium Priority
?
3,213 Views
Last Modified: 2012-05-11
Is it possible to programatically set the page size to A4 or A4 etc?
Thanks
0
Comment
Question by:hindersaliva
1 Comment
 
LVL 8

Accepted Solution

by:
pwust earned 2000 total points
ID: 35727362
A3:

    ActiveSheet.PageSetup.PaperSize = xlPaperA3


A4:

    ActiveSheet.PageSetup.PaperSize = xlPaperA4
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question