adam_neb
Board Regular
- Joined
- Jun 9, 2002
- Messages
- 101
My Page Set Up Macro currently repeats row 1:14. I would like the Macro to prompt me to enter the last row to be included in the PrintTitleRows.
Current:
With ActiveSheet.PageSetup
.PrintTitleRows = "$1:$14"
.PrintTitleColumns = ""
End With
ActiveSheet.PageSetup.PrintArea = ""
With ActiveSheet.PageSetup
I use this Macro on many different spreadsheets throughout the day that come to me from many sources. However, not all require rows 1:14 to be repeated... some may be rows 1:3, 1:7, 1:5, etc. I would like to run the Macro and have a prompt appear which would allow me to enter the final row to be included in the PrintTitleRows portion of the Macro.
How would I change my Macro to prompt for this? Thank you!
Current:
With ActiveSheet.PageSetup
.PrintTitleRows = "$1:$14"
.PrintTitleColumns = ""
End With
ActiveSheet.PageSetup.PrintArea = ""
With ActiveSheet.PageSetup
I use this Macro on many different spreadsheets throughout the day that come to me from many sources. However, not all require rows 1:14 to be repeated... some may be rows 1:3, 1:7, 1:5, etc. I would like to run the Macro and have a prompt appear which would allow me to enter the final row to be included in the PrintTitleRows portion of the Macro.
How would I change my Macro to prompt for this? Thank you!