I'm not a programmer, but I don't want to sit down and do this to 400 pages.
My workbook contains a variable number of pages. Each page contains the same column headings, but the number of rows is variable. Each row contains a scientific reading recording time, date, temp, etc. What I need is to print the full range from A1:K(last filled row), and exclude any data columns past K.
Then I need to apply this to every worksheet in the workbook.
My workbook contains a variable number of pages. Each page contains the same column headings, but the number of rows is variable. Each row contains a scientific reading recording time, date, temp, etc. What I need is to print the full range from A1:K(last filled row), and exclude any data columns past K.
Then I need to apply this to every worksheet in the workbook.
Code:
Sub printmacro()
' With ActiveSheet.PageSetup
.PrintTitleRows = "$1:$4"
.PrintTitleColumns = "$A:$K"
End With
ActiveSheet.PageSetup.PrintArea = "$A$1:$K$77"
End Sub