Need to add header and footers in Excel

rustym

New Member
Joined
Jul 22, 2010
Messages
18
Hi everyone,

I am working on a workbook right now that has a big table in which I need to keep pasting entries into with a macro. The problem is that the table may be several pages long and I need to include the headers and a footer for the table on every sheet.

The idea is that I have a for loop that keeps pasting data into the table but when it realizes that there is only one row left before the footer, it should paste the next entry in the next sheet (under the headers) and skip the footer in the latter page.

In Word you can do this with page breaks, but it seems much harder to do in Excel.

Any ideas on how I can achieve this?

Thanks in advance,

rustym
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Go into FILE > PAGE SETUP > SHEET > PRINT TITLES and set the rows that are to be repeated at the top of every sheet.

Then click on the HEADER/FOOTER tab and set your custom footer.
 
Upvote 0

Forum statistics

Threads
1,215,339
Messages
6,124,381
Members
449,155
Latest member
ravioli44

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