P
Pam
Trying to write a macro to print a spreadsheet where the
number of rows of data varies.
What's wrong with this code?
Dim rng As Range
Set rng = Range("A1").End(xlDown).End(xlToRight)
With ActiveSheet.PageSetup
.PrintArea = rng
End With
Thank you.
Pam
number of rows of data varies.
What's wrong with this code?
Dim rng As Range
Set rng = Range("A1").End(xlDown).End(xlToRight)
With ActiveSheet.PageSetup
.PrintArea = rng
End With
Thank you.
Pam