+ Reply to Thread
Results 1 to 3 of 3

colour coding cell based on value of another

  1. #1
    Forum Contributor
    Join Date
    01-23-2010
    Location
    Suffolk, England
    MS-Off Ver
    Office 365
    Posts
    271

    colour coding cell based on value of another

    Hi,

    I'm trying to colour code data contained in a report but struggling to achieve it.

    The code below works ok but contains a colour coding section at the bottom which produces an error message 13 - type mismatch

    I want to colour cells F,G & L for each row based on the value of AR on that row - less than 0 is red, 0-7 is yellow and 8> is green.

    Would anyone be able to help please?

    Please Login or Register  to view this content.
    Thanks,

    Louise
    Last edited by Brontosaurus; 11-28-2010 at 10:45 AM.

  2. #2
    Forum Contributor johnjohns's Avatar
    Join Date
    11-19-2007
    Location
    Dubai, UAE
    MS-Off Ver
    2003 and 2007
    Posts
    526

    Re: colour coding cell based on value of another

    Try
    Please Login or Register  to view this content.
    removing the quotes and so on for the similar codes. Also, why don't you use conditional formating for coloring?


    rgds

    johnjohns

  3. #3
    Forum Contributor
    Join Date
    01-23-2010
    Location
    Suffolk, England
    MS-Off Ver
    Office 365
    Posts
    271

    Re: colour coding cell based on value of another

    Hi,

    I still get the error message

    I'm not using conditional formatting as the source data is located elsewhere and copied into this worksheet to create a regular report based on topical source data.

    Therefore all of the processing/formatting is done in this macro.

    Thanks,

    Louise

+ 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