+ Reply to Thread
Results 1 to 5 of 5

Change Header or footer using input box

  1. #1
    Valued Forum Contributor
    Join Date
    01-11-2012
    Location
    Riyadh, K.S.A.
    MS-Off Ver
    Windows 11 with Excel 2013 & 2016
    Posts
    900

    Change Header or footer using input box

    Hello,

    I have about 9 sheets which i use daily for different clients (Contract). Every time i have to change header and footer.

    Header contain company name and footer contain file no.

    Can anyone one help me in this regards.

    What i want is VBA macros asking for enter header text and after that ask me to add footer text.

    Can anyone do this for me please.
    Last edited by hecgroups; 02-07-2012 at 12:32 PM.

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Change Header or footer using input box

    Something like this maybe:

    Please Login or Register  to view this content.
    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Valued Forum Contributor
    Join Date
    01-11-2012
    Location
    Riyadh, K.S.A.
    MS-Off Ver
    Windows 11 with Excel 2013 & 2016
    Posts
    900

    Re: Change Header or footer using input box

    Excellent boss thanks for sharing your script with me.

  4. #4
    Registered User
    Join Date
    09-01-2015
    Location
    U.S.
    MS-Off Ver
    2010
    Posts
    3

    Re: Change Header or footer using input box

    What if you only want an input prompt for the subject of a three line center header such as in:

    (Prompt for subject)
    For Month Ended
    November 30, 2016

    My macro header is used for many workbooks, so the only thing that is consistent is the "For Month Ended" and the date scripts. Although I do have to go in to the code and change the date when a new month has arrived, I know of no other way to do this since I wouldn't want to have to type it in at each input prompt either.

    Can an input prompt just be given for the first line of a three line center header? How would you put in the rest of the script so that you're not having to "input" it each time too?

    Thanks!

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Change Header or footer using input box

    rockymtngirl welcome to the forum

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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