This code sets the print area of the active worksheet to the selected range.
VBA Code:
Sub SetPrintArea()
ActiveSheet.PageSetup.PrintArea = Selection.Address
End Sub
This code sets the print area of the active worksheet to the selected range.
VBA Code:
Sub SetPrintArea()
ActiveSheet.PageSetup.PrintArea = Selection.Address
End Sub