+ Reply to Thread
Results 1 to 3 of 3

Changing cell font colour with VBA....excel 2007 to 2010 compatability issue?

  1. #1
    Registered User
    Join Date
    10-04-2011
    Location
    Windsor, England
    MS-Off Ver
    Excel 2010
    Posts
    69

    Changing cell font colour with VBA....excel 2007 to 2010 compatability issue?

    I have some code where part of it formats all my cells in a table to be italic and grey.

    Please Login or Register  to view this content.
    I just made this by recording formatting one cell and then applying it to a range.

    When I try and run this however, it formats the text as white! Does anyone know what i'm doing wrong!? I've tried with different colours but still everytime it formats all text white.

    I've just switched from 2007 to 2010 but I wouldn't have thought this would have been an issue?

    Thanks,

    Alice

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Changing cell font colour with VBA....excel 2007 to 2010 compatability issue?

    ive heard they are reversed.

    try changing it to colordark2 or use the .color or .colorindex

  3. #3
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Changing cell font colour with VBA....excel 2007 to 2010 compatability issue?

    it's a bug in 2010-TintAndShade doesn't work with cell fonts! it has been fixed in 2013 I think

    if you can use an rgb color value instead that oughta work
    Josie

    if at first you don't succeed try doing it the way your wife told you to

+ 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