I'm using the following code to print only page 4 of several different sheets from the same workbooks at the press of one button ....
Sub print_multiple_sheets()
Sheets("AnnaRexia").Select
ActiveWindow.SelectedSheets.PrintOut From:=4, To:=4, Copies:=1
Sheets("MikeRaffone").Select
ActiveWindow.SelectedSheets.PrintOut From:=4, To:=4, Copies:=1
Sheets("RipTorn").Select
ActiveWindow.SelectedSheets.PrintOut From:=4, To:=4, Copies:=1
End Sub
But if these sheet names are listed in the range ... Index!D7:D9 ...I'd like to condense this code so that it refers to the sheet names in that range and prints page 4 of each of them.
How would I adjust my code ?
Sub print_multiple_sheets()
Sheets("AnnaRexia").Select
ActiveWindow.SelectedSheets.PrintOut From:=4, To:=4, Copies:=1
Sheets("MikeRaffone").Select
ActiveWindow.SelectedSheets.PrintOut From:=4, To:=4, Copies:=1
Sheets("RipTorn").Select
ActiveWindow.SelectedSheets.PrintOut From:=4, To:=4, Copies:=1
End Sub
But if these sheet names are listed in the range ... Index!D7:D9 ...I'd like to condense this code so that it refers to the sheet names in that range and prints page 4 of each of them.
How would I adjust my code ?