+ Reply to Thread
Results 1 to 4 of 4

Header/Footer automation with Custom User input

  1. #1
    Registered User
    Join Date
    11-28-2012
    Location
    NA
    MS-Off Ver
    Excel 2013
    Posts
    34

    Header/Footer automation with Custom User input

    My work requires monotonous and somewhat time consuming input of headers and footers (h and f). I currently have a macro set up to automate these h and f with both static and non-static information (as seen in the code). What I wondering is if there is a way to allow user input for those items that need to change (e.g. company name, title of paper, reference (X-X-1), etc.) or if there is a better way to do this.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Header/Footer automation with Custom User input

    First of all, you don't need all that information. All you need are the parts of the header and footers that you are actually changing.

    I suggest you give the user a sheet where they can set this information up. In the attached I made some named static ranges containing the strings you want to print. I could have referenced page and range but L_Foot makes a lot more sense than Sheets("Header Footer")!Range("$B$3") and it also takes a lot less typing.

    I've simplified some of the assignments. As I mentioned before, once you get the fonts set, they'll stay that way until changed manually or by code.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    11-28-2012
    Location
    NA
    MS-Off Ver
    Excel 2013
    Posts
    34

    Re: Header/Footer automation with Custom User input

    That works, except what about bold fonts, margins, and sheet orientation? I use both horizontal and vertical orientation. Sorry for the late, late reply - I sometimes forget to check back.

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Header/Footer automation with Custom User input

    Don't worry about the late reply. I just got back from vacation myself - it may be a day or two before I get back to this one

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Change Header or footer using input box
    By hecgroups in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-07-2016, 02:51 PM
  2. Replies: 5
    Last Post: 03-19-2012, 06:14 PM
  3. How to add custom header and footer?
    By adds007 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-20-2010, 06:12 PM
  4. Excel custom header and footer
    By justamit_81 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-31-2010, 07:36 AM
  5. Inserting Custom Header and Footer
    By haitham1984 in forum Excel General
    Replies: 2
    Last Post: 11-12-2008, 09:26 PM
  6. How to save a custom made header&footer
    By HeintjeHB in forum Excel General
    Replies: 3
    Last Post: 06-29-2006, 11:30 AM
  7. [SOLVED] Saving Custom Header/Footer
    By Foppa in forum Excel General
    Replies: 0
    Last Post: 08-16-2005, 08:05 PM
  8. [SOLVED] Custom Header and Footer
    By Dave in forum Excel General
    Replies: 1
    Last Post: 03-23-2005, 05:06 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1