EliseFreedman
Programmer
I have a spreadsheet which I am trying to set up to print via a macro for a colleague. At first glance this seemed like an easy task. However it is complicated by the fact that she is printing the worksheet to a photocopier which automatically staples each booklet after printing.
The first page contains the cover sheet for the booklet which is then followed by all the remaining pages. I would like to set it up so that the first page does not have any page numbering in the footer but that the remaining pages do. I managed to do this using code as shown below. However, the photocopier then only staples from the 2nd sheet onwards. The only way I have found to get the whole thing stapled is to print it in one single print run. However, I am then stuck with footers on the front page. Does anyone have any ideas.
The first page contains the cover sheet for the booklet which is then followed by all the remaining pages. I would like to set it up so that the first page does not have any page numbering in the footer but that the remaining pages do. I managed to do this using code as shown below. However, the photocopier then only staples from the 2nd sheet onwards. The only way I have found to get the whole thing stapled is to print it in one single print run. However, I am then stuck with footers on the front page. Does anyone have any ideas.
Code:
'Application.EnableEvents = False
'With ActiveSheet
'.PageSetup.LeftFooter = ""
'.PageSetup.RightFooter = ""
' ActiveWindow.SelectedSheets.PrintOut From:=1, To:=1, Copies:=1, Collate:=True
'.PageSetup.LeftFooter = Format(Now(), "d mmmm yyyy") 'inserts date
'.PageSetup.RightFooter = "&P" ' inserts page number
' ActiveWindow.SelectedSheets.PrintOut From:=2, Copies:=1, Collate:=True
'End With
'Cancel = True
'Application.EnableEvents = True