ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Print area (https://www.excelbanter.com/excel-programming/308272-print-area.html)

TOM

Print area
 
Hi,

I have a macro that every time copy the data from one
sheet to a new file. But whenever i wanted to print, I gt
some parts of the data not printed out for the new file.
How do i code in VBA to print all?

Many Thanks.

regards,
Tom

N10

Print area
 

Range("A1").Select
ActiveSheet.PageSetup.PrintArea = ""
Range(Selection, ActiveCell.SpecialCells(xlLastCell)).Select
ActiveSheet.PageSetup.PrintArea = "$A$1:$I$14"
'your code<<<<<<<<<<<<<<<<

ActiveSheet.PageSetup.PrintArea = ""
N10

"Tom" wrote in message
...
Hi,

I have a macro that every time copy the data from one
sheet to a new file. But whenever i wanted to print, I gt
some parts of the data not printed out for the new file.
How do i code in VBA to print all?

Many Thanks.

regards,
Tom





All times are GMT +1. The time now is 11:29 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com