+ Reply to Thread
Results 1 to 2 of 2

Change font color of footer

  1. #1
    Registered User
    Join Date
    02-14-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    2

    Change font color of footer

    I used this forum alot to solve my problems but for this one I cant find the solution.

    I have a VBA code to change colors in my sheet and in the footer (when it works also the header)

    The code works fine but the result gives me and extra " before the text in the footer

    This is just a little part of the whole VBA Code.

    ActiveSheet.PageSetup.CenterFooter = _
    "&""Times New Roman,Standaard""&K00B0F0&12""Test&""-,Regular""&11&K000000" & Chr(10) & "&""Times New Roman,Cursief""&UTest2"

    The result should become

    Test( in blue)
    Test2( in black underlined)

    But the result nu is:
    "Test( in blue)
    Test2( in black underlined)

    Can someone please help me on how to remove the " before Test

    Thanks in advance.

    PS I also test it in Excel 2010 the same thing happens
    Last edited by mcorbet; 02-14-2012 at 07:48 AM. Reason: added extra information

  2. #2
    Registered User
    Join Date
    02-14-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Change font color of footer

    Solved:

    ActiveSheet.PageSetup.CenterFooter = _
    "&""Times New Roman,Standaard""&K00B0F0 &12 Test&""-,Regular""&11&K000000" & Chr(10) & "&""Times New Roman,Cursief""&Test2"

+ 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