How, instead of the range "A: I" in the example below, to implement the ability to set its (range) by hand, by selecting the mouse through the columns of the desired area?
Sub xxx() ActiveSheet.PageSetup.PrintArea = "A:I" With ActiveSheet.PageSetup .CenterHorizontally = True .CenterVertically = False .Orientation = xlLandscape .Zoom = 100 .ScaleWithDocHeaderFooter = True .AlignMarginsHeaderFooter = False End With End Sub