If you have quite a few worksheets and workbooks into which you want the headers and footers copied, there is a different macro approach you can use. You could even assign the macros to toolbar buttons, if desired, which can make them even handier for copying headers and footers. You can then display, in turn, each worksheet that you want to have the same header and footer and run the DoHeaders macro. This macro copies the header and footer information to string variables. All you need to do is display the source worksheet and use the GetHeaders macro. The following two macros can be used to copy headers and footers in one simple step. In this case, using a macro to do the copying is the saner approach. While these steps work fine, they can be tedious if you need to copy headers and footers to a number of different workbooks. What you essentially did is to copy the worksheet containing the header and footer you desired, then you copied that header and footer to other worksheets in the workbook, then you deleted the original worksheet. Delete the worksheet you copied in steps 1 through 7.Using the Header and Footer drop-down lists, select the header and footer used in the worksheet you just copied.The Header/Footer tab of the Page Setup dialog box. Make sure the Header/Footer tab is selected.In the tab area at the bottom of the window, right-click and choose Select All Sheets.In the target workbook, display the worksheet you just copied.The worksheet is copied to the target workbook. Make sure the Create a Copy check box is selected.Using the Before Sheet area, indicate where you want the sheet copied.Using the To Book drop-down list, select the target workbook you opened in step 1.Excel displays the Move or Copy dialog box. Choose Move or Copy Sheet from the Edit menu.Open the workbook that is the source of your header and footer, and make sure the desired worksheet is displayed.Open the target workbook the one to which you want the headers and footers copied.This means that you must do six copy and paste operations to copy the complete header and footer.Īnother way to copy headers and footers from one workbook to another involves the use of native Excel commands to make copies of worksheets. After all, there are three sections (left, center, and right) for each header and three for each footer. The drawback to this approach is that it can involve quite a few steps.
In other words, you can select the header material you want to copy, press Ctrl+C, display the header in the target worksheet, and then press Ctrl+V. One way to copy headers and footers from a worksheet in one workbook to a worksheet in another is to use the traditional editing methods of copying and pasting. You can then create your workbooks based on this template and it will have the headers and footers you desire. Then, save the workbook as an Excel template (XLT format). Just set up a workbook as desired, including the specification of headers and footers. If the header and footer is one you use quite a bit in new workbooks, and your main concern is to have the header and footer available in those new workbooks (not in existing workbooks), then the best approach would be to create a template workbook. Doing so within a workbook is relatively easy, but doing so from one workbook to another can be more daunting. You may want to copy these headers and footers from one worksheet to another.
Excel allows you to specify headers and footers for your worksheets.