+ Reply to Thread
Results 1 to 5 of 5

How To Create a macro for Cell References into Header for a workbook

  1. #1
    Registered User
    Join Date
    03-06-2012
    Location
    Mumbai
    MS-Off Ver
    Excel 2010
    Posts
    7

    Post How To Create a macro for Cell References into Header for a workbook

    Hi,

    I've the following macro:

    Please Login or Register  to view this content.
    Using this I can insert different cell references in header, but it needs to run everytime by opening every sheet, which is teadius.

    I'm looking for similar macro, which will run for a whole workbook while opening the file and should have a formatting option.

    Thanks,

    Vivek


    Moderator's Note: Welcome to the forum.Thank you for joining. Btw, when posting codes they should be enclosed with code tags. Select the code then hit the "#" sign. I'll do it for you now. Thanks.
    Last edited by vlady; 01-19-2013 at 01:01 AM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,953

    Re: How To Create a macro for Cell References into Header for a workbook

    In ThisWorkbook Module:
    Please Login or Register  to view this content.
    Ben Van Johnson

  3. #3
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: How To Create a macro for Cell References into Header for a workbook

    Hello k_vivek27,

    welcome to the Forum.

    Delete your Macro, and place this Code in This Workbook event;

    Please Login or Register  to view this content.
    Also see the "Please consider" note at the bottom of this post.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  4. #4
    Registered User
    Join Date
    03-06-2012
    Location
    Mumbai
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: How To Create a macro for Cell References into Header for a workbook

    Hi,

    I've tried this, but it is not working!!

    Regards

  5. #5
    Registered User
    Join Date
    03-06-2012
    Location
    Mumbai
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: How To Create a macro for Cell References into Header for a workbook

    Hi Winon,

    Its working!!!

    I would like to have a macro to format this header automatically.

    Thanks,
    Vivek

+ 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