Hi guys I returning to this after 15 yrs out and my memory is poor. So any help would be fantastic.
I have a button to select a range and print.
Private Sub cmdbtnPrint_Click()
ActiveSheet.Select
Range("A3:F21").Select
ActiveSheet.PageSetup.PrintArea = "A3:F21"
ActiveWindow.SelectedSheets.PrintOut From:=1, To:=1, Copies:=1, Collate _
:=True
End Sub
I need to have the end range as a variable ie F21 needs to look and find the last row to cell 21
Thanks
I have a button to select a range and print.
Private Sub cmdbtnPrint_Click()
ActiveSheet.Select
Range("A3:F21").Select
ActiveSheet.PageSetup.PrintArea = "A3:F21"
ActiveWindow.SelectedSheets.PrintOut From:=1, To:=1, Copies:=1, Collate _
:=True
End Sub
I need to have the end range as a variable ie F21 needs to look and find the last row to cell 21
Thanks