Setting up a variable print range
One more possible method:
ActiveSheet.PageSetup.PrintArea = _
ActiveSheet.UsedRange.Address
Provided you save your workbook before running this code,
this would grab the smallest rectangular area of cells
that contain any data.
-----Original Message-----
I am looking for an easy way to use a macro to select a
print range by determining the last row and column used.
However, the last row and column used will change
between
users. For example, if the user only used up to row 98
and
column L is the last column used. I need to select the
range A1 to L98 and print this range. Thanks for any
input.
gary
.
|