I have an excel tool that was made by someone before me. However, when the tool was made, it would output worksheets to a certain size that would fit the printable area in excel 2007. In excel 2010 however, the sizing is off. How can I change the size of the print area in a worksheet without having to change the size of individual cells in each sheet?
Thanks for anyone who can offer their 2 cents.
I'm assuming that the ability to set the print area to a range of cells programatically will get you where you'd like to be:
Dim MyPrintArea As Range
Set MyPrintArea = ActiveSheet.Range("A1:G15")
ActiveSheet.PageSetup.PrintArea = MyPrintArea
Best I could do based upon the ask.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.