Results 1 to 5 of 5

Reference Cell in Page Header Using VBA - Excel 2007

Threaded View

  1. #1
    Registered User
    Join Date
    09-22-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    2

    Reference Cell in Page Header Using VBA - Excel 2007

    Hello, all! I am stumped!

    I have a 150-tab product catalog built in Excel 2007. I want to reference cell A3 (on the tab I have renamed Master) in the header.

    My ultimate desired result: we type in XYZ Company in cell A3 on the Master tab, then all left headers on every tab will read XYZ Company.

    So far, I've tried inserting these in Worksheet Open and Worksheet BeforePrint:
    ActiveSheet.PageSetup.LeftHeader = Master.Range("A3") & " " & ActiveSheet.Range("A3")
    ActiveSheet.PageSetup.LeftHeader = Master.Range("A3")
    ActiveSheet.PageSetup.LeftHeader = Master.Range("a3").Value

    Can anyone tell me where I'm going wrong with the code and where, exactly, in the VBA editor I'm supposed to insert said code?

    Thanks in advance!!
    Last edited by alansidman; 09-22-2013 at 09:21 PM. Reason: code tags added

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Add cell reference to Page Setup Header
    By jhovey in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-25-2012, 02:36 PM
  2. Reference cell from top row of each page in header
    By mzemble in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-06-2009, 12:45 AM
  3. Adding a Reference to Header/Footer in excel 2007
    By ExcelTip in forum Tips and Tutorials
    Replies: 0
    Last Post: 11-13-2007, 05:33 AM
  4. Excel: can I refer to cell reference in page setup header
    By nikos in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-21-2006, 02:25 PM
  5. [SOLVED] Excel header/footer cell reference
    By Paddy in forum Excel General
    Replies: 2
    Last Post: 12-16-2005, 11:35 AM

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