+ Reply to Thread
Results 1 to 4 of 4

Thread: 2003 colors not recognised in 2007??

  1. #1
    Registered User
    Join Date
    05-21-2004
    Posts
    16

    2003 colors not recognised in 2007??

    Hello,

    I've just started to use excel 2007 after 2003 usage (pain). It seems that the colour palette has changed. which is causing me problems.

    My issue is that the bright red (formerly 36) is no longer on the standard colours and the red that looks a lot like it is number -16776961

    The macro that I had created will not change a cell's colour if it is red (36), so obvioulsy does not recognise any cells coloured in the new palette numbering. When I try to get it to recognise -16776961, the macro just skips the line.

    Can I either get the 2007 excel to recognise -16776961 in the macro, or get it to just call the red number 36 instead of -16776961 ?


    The particular part of code that doesn't seem to be working is

    For Each c In Selection.Cells
     'If the font is red, then leave as red - take no further action (was 36)
           If c.Font.ColorIndex = -16776961 Then GoTo skipmacro1 Else

    In my macro, I also reference other 2003 colours which also have a similar problem (blues, maroon, grey)...is there a simple fix?

    I hope this is clear, but please let me know if I need to explain it again

    Thanks
    Last edited by Romanian37; 07-21-2010 at 03:33 AM.

  2. #2
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007, 2010
    Posts
    25,759

    Re: 2003 colors not recognised in 2007??

    Microsoft MVP - Excel
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    05-21-2004
    Posts
    16

    Re: 2003 colors not recognised in 2007??

    Thanks, looks like I'll just have to lump it and change a fair few things....

  4. #4
    Forum Guru, retired Admin royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    25,626

    Re: 2003 colors not recognised in 2007??

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save
    Hope that helps.

    RoyUK
    --------
    If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need

    For Excel Tips & Solutions, free examples and tutorials why not check out my downloads

    New members please read & follow the Forum Rules

    Remember to mark your questions Solved and rate the answer(s)

+ 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.2.0