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
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,282
Office Version
  1. 365
Platform
  1. Windows
Is this for printing purposes?

And what do you mean by a 'page' exactly?
 

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,958
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
Click on File, then Page Setup
Click on the Sheet tab
Under Print Titles:
After Rows to repeat at top:, you can either then click the icon next to this box and select your row, or type it in, like for row 1, $1:$1
Click OK
 

Kavy

Well-known Member
Joined
Jun 25, 2007
Messages
607
This is for printing Purposes
And thanks for the help, but still small problem i need to do it with code, because the row that will be my header will change...

Anyone know how?

Thanks again?
 

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,958
Office Version
  1. 365
  2. 2010
Platform
  1. Windows

ADVERTISEMENT

, because the row that will be my header will change...

Based on what?
 

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,282
Office Version
  1. 365
Platform
  1. Windows
Try recording a macro when you do what HOTPEPPER suggests.

That should generate code that can be adapted to suit.

To give specific code we would need to know how the header(s) might change.
 

Kavy

Well-known Member
Joined
Jun 25, 2007
Messages
607

ADVERTISEMENT

The row that I would like to keep might change because depending on what check boxes are click another table sorta appears above it.. using insert rows.

Besides Recordng a marcro is this possible?

the row its on if nothing is inserted above is 9. I have a counter "insrow" which counts how many rows are inserted above it.

When It prints the header will be on row 9 + insrow

Any idea?
 

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,282
Office Version
  1. 365
Platform
  1. Windows
Eh, 'sorta' doesn't really help.:)

Don't think it's a VBA method/property/keyword.:)
 

Kavy

Well-known Member
Joined
Jun 25, 2007
Messages
607
ha sorry

How it works is, if a check box is checked, a another table appears above it.

The displacement for the because of this for the row i want to appear on many pages is measure by a variable insrow, which is 0 if the check box isn't check.
 

Watch MrExcel Video

Forum statistics

Threads
1,129,750
Messages
5,638,138
Members
417,010
Latest member
jnuss03

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
Top