I've an excel worksheet with columns A5 - A2039 containing dates, i.e 16-Mar-2009 to 31-Dec-2014.
What I need is a print button, which when pressed will allow users to select the date ranges to be printed, (i.e from and to)
I currently have a print button with the code;
Private Sub Commandbutton1_Click()
ActiveWindow.SelectedSheets.Printout copies:=1, Collate:=True
End Sub
however, this just prints everything...i.e all 46 pages!!
any ideas? Sorry, new to this excel malarky...
Cheers!
What I need is a print button, which when pressed will allow users to select the date ranges to be printed, (i.e from and to)
I currently have a print button with the code;
Private Sub Commandbutton1_Click()
ActiveWindow.SelectedSheets.Printout copies:=1, Collate:=True
End Sub
however, this just prints everything...i.e all 46 pages!!
any ideas? Sorry, new to this excel malarky...
Cheers!