+ Reply to Thread
Results 1 to 2 of 2

Insert (with formatting!) content of a cell into a header

  1. #1
    Registered User
    Join Date
    10-09-2012
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    2

    Insert (with formatting!) content of a cell into a header

    Hi there,

    Have poked around a bit for an answer as well as attempted a few different iterations with no luck. I'm trying to produce a left header that is both (1) formatted a particular way AND (2) linked to a particular cell. For the latter, I have it as:

    Sub AddHeader_CurrentSheet()
    With ActiveSheet.PageSetup
    .LeftHeader = Range(" 'Sheet1'!B14").Value
    End With
    End Sub

    Here's the formatting "string" (I'm not a pro so pardon the loose language) I would like for above:

    .LeftHeader = "&""-,Bold""&16&K0070C0 [NOTE: and then the cell referenced above would follow]

    All help appreciated.

  2. #2
    Registered User
    Join Date
    10-09-2012
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Insert (with formatting!) content of a cell into a header

    One clarification: I am not looking for the formatting of the referenced cell to be included in the header. Rather, I'm looking to just choose a particular type of formatting for the header created by the first macro listed above. Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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