I have this macro in a set of workbooks:
Sub print_sch3()
Application.ScreenUpdating = False
With ActiveSheet.PageSetup
.PrintTitleRows = "8:$13"
.PrintTitleColumns = ""
End With
Application.Goto Reference:="Print_sch3_school"
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
Sheets("schedule3").Select
Range("A8").Select
End Sub
There's an error in this code that I'd like to fix with a macro-there are too many workbooks to update manually. The line that needs to be updated is: .PrintTitleRows = "8:$13". It needs to change to: .PrintTitleRows= "$8:$13".
Can you suggest some code that I should use to make this correction?
Thanks
Sub print_sch3()
Application.ScreenUpdating = False
With ActiveSheet.PageSetup
.PrintTitleRows = "8:$13"
.PrintTitleColumns = ""
End With
Application.Goto Reference:="Print_sch3_school"
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
Sheets("schedule3").Select
Range("A8").Select
End Sub
There's an error in this code that I'd like to fix with a macro-there are too many workbooks to update manually. The line that needs to be updated is: .PrintTitleRows = "8:$13". It needs to change to: .PrintTitleRows= "$8:$13".
Can you suggest some code that I should use to make this correction?
Thanks