Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50190

Printing a spreaadsheet using VBA

$
0
0
I tried to use a macro to do this and edited the following line which is where it is failing.
N is the last row that I want to print...

Code:

ActiveSheet.PageSetup.PrintArea = Range(Cells(1, 1), Cells(N, 24))
How should I write this, Please?

Jim Berglund

Viewing all articles
Browse latest Browse all 50190

Trending Articles