Repeat Title Row every Page

Kavy

Well-known Member
Joined
Jun 25, 2007
Messages
607
Does anyone know how to using excel vb repeat a row of a worksheet at the top of a page, ever page?
Thanks
 
So the row you want to repeat is the value in insrow or is it the value of insrow+1?

If insrow is 0, do you want any rows to repeat at the top?
 
Upvote 0

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
the row i would like to repeat is insrow + 9.
if insrow = 0 then the row the needs to repeat every printed page is 9

Thanks for your help on this, sorry for all the confusin
 
Upvote 0
Code:
ActiveSheet.PageSetup.PrintTitleRows = Rows(insrow + 9).Address
 
Upvote 0
It returns the address of the range as a string

so the address of Rows(9) for example would be $9:$9
 
Upvote 0

Forum statistics

Threads
1,214,875
Messages
6,122,040
Members
449,063
Latest member
ak94

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top