footer

  1. J

    VBA to Size, Bold, and Font a header with Cell Value

    Hi All, I'm trying to pass this code to a header: 'Range("C4").Value = Department_Name strHeader = Cells.Range("C4").Value With ActiveSheet.PageSetup .PrintTitleRows = "$6:$8" .CenterHeader = "&""Calibri,Bold""&28" & strHeader .CenterFooter = "&P" .LeftMargin =...
  2. M

    Excel VBA Problem in Page Footer

    Sub FormattedPageNums() Dim iPages As Integer Dim J As Integer Dim sFormat As String sFormat = "00000" ' Get count of pages in active sheet iPages = ExecuteExcel4Macro("Get.Document(50)") With ActiveSheet For J = 1 To iPages...
  3. A

    Macro VBA Getting the footer/header from multiple files with subfolders

    I have used this site for most of the pieces of this marco so thank you to the community!! One last issue The purpose is to get the footer from multiple files. This is the only reference I have for which employee prepared the sheets (templates were created and managers signed them, so I can't...
  4. A

    Macro to Retrive Footer information from multiple files in a folder

    Hi guys! I am new here and in a new job! Very exciting! I am trying to get the footer information from multiple Excel files (about 600) in a folder that has sub folders. I need the file name and file path as well. I found two web pages that I have been struggling to combine. 1. Applying the...
  5. T

    VBA Footer Horizontal Line

    How would I add a horizontal line at the top of this footer? I tried adding "String(100, "_") &" to the beginning of the .LeftFooter but it's not working. Thanks for helping... Here's the full code. Sub SetFooter() ' custom footer Dim wb As Workbook Dim wsProfile As Worksheet Dim strCompany...
  6. T

    VBA Footer

    Why doesn't my telephone number show in the bottom right footer with the following code? This is a telephone number (###.###.####) but I've tried various formats. Everything else works. How do I make this run automatically with any change in the worksheet? I currently have to run the macro for...
  7. L

    How to change only footers fontsize and font?

    Hi everyone Here’s what I’m looking for: I wanted to copy active sheet’s leftfooter and apply to all other sheets in the workbook. So I found the code below: Sub copyfooter() Dim ps As PageSetup Dim wb As Workbook Dim ws As Worksheet Set ps = ActiveSheet.PageSetup For Each wb In...
  8. C

    "Rows x to y" in page footers

    I've been looking for a way, for about 6 months off and on now, to have Excel print data from the first and last row that is printed, minus repeated rows at the top. I'm currently working with Excel 2007/Win 8 at home, though this could be used in my workplace at well which would mean typically...
  9. P

    Wrote a macro to include page X of Y, but it's not included when Macro runs

    Good afternoon. Thanks in advance for the help. I am new to macros and recorded one this morning - the purpose is to set up a page's layout. It works well with one exception. Despite recording the action to include a footer reporting Page 1 of 2, for example, this is not included when the...
  10. B

    Alternating Header/Footer Margins

    I am in the process of preparing a monthly binder report. Because I'm using 3 hole-punched paper and 2-sided printing, my margins are never correct for my second page. I could print using the short side, but then the binder would have to be turned around every time a page is flipped so that's...
  11. A

    How do you insert page number in the footer of an exported excel file using xml?

    Hi, I saved my excel file as xml and the part below would result to "1/2" (as in 1 of 2 pages) as page number in the footer. <Footer x:Data="&P/&N"/> I did that on my code but unfortunately, when exported, it literally and letter-per-letter displays : &P/&N How do I fix that? Does anybody...
  12. G

    Help needed with footerfor word from excel VBA

    I am new at VBA, my code is very dirty however it works and my project is 99 percent complete. My project is to take a bunch of different size excel tabs and have them print to one PDF. After a lot of research I found that this is almost impossible so I decided that I would copy ranges from...
  13. L

    VBA: Formatting Header Font based on Selection in Worksheet

    Hey guys, I've hit a road block here and need a little help. I'm using VBA to allow users to format a custom header and footer on all tabs. I want them to be able to enter the text and allow them to choose the font size and style; however, I cannot get the font style to pull through. Below...
  14. C

    How to have a custom date (YYYY) automatically updated in the footers (Excel 2010) upon opening a file

    Dear All, I would be grateful for your kind help. I am trying to have the year in the footers of all my Excel files to automatically update to the current year. To that effect, I have created the following macro: Sub SetFooterAttributes() For Each xWorksheet In ActiveWorkbook.Worksheets...
  15. E

    Header and footer being truncated in Excel 2010

    I have a VBA macro which extracts data and formats it for printing. To the print format I have added a left header containing a text string showing the description of the data, and a left footer which contains a reference number. I have also included in the right footer the current date and...
  16. K

    Chart Header and Footer

    Hi, Does anyone know how to write the code for adding a header and footer to multiple charts? If posible I would like to be able to add the same header and footer to all of the charts. I figured out how to do it for the worksheets, but I can't seem to translate to work for the charts. Thanks.
  17. N

    Populating a column in Excel from MS Word

    Hi, I am an intermediate MS Excel user and I have a question for those of you who are more savy. I am trying to figure out if it is possible to populate a field in Excel by reading the footer of a MS Word document. Has anyone had experience doing this sort of thing? Thanks, -Neil
  18. M

    Footer value does not convert $[Page] to the page number (C#)

    In my Excel add in, When change the footer to something like this: mySheet.PageSetup.CenterFooter = "Page &[Page] of $[Pages]"; I get exactly "Page &[Page] of $[Pages]" in the footer when I print, instead of "Page 1 of 3". If I do this in a macro it seems to convert properly. Any Ideas...
  19. W

    Footer Macro

    I am trying to make a footer say what is in a cell on a different page and make the font size 8. When I run my macro nothing happens and I can't figure out why... Code: Sub Font() ' ' font Macro ' ' Sheets("Market Overview").Select Dim strFtr As String strFtr =...
  20. G

    Pass excel variable to a footer in word

    I have an Excel form to collect data. That data then goes in several Word doc's (using bookmarks) that are opened when a button is pressed. The only thing I am not able to do is send this data to a footer because it "cannot find" the bookmark in the footer. How do I send data to a footer in...

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