+ Reply to Thread
Results 1 to 6 of 6

VBA for conditional formatting in 2003

  1. #1
    Forum Contributor Russell Dawson's Avatar
    Join Date
    03-01-2012
    Location
    Yorkshire, England
    MS-Off Ver
    2007
    Posts
    608

    VBA for conditional formatting in 2003

    I need some VBA assistance with conditional formatting please in 2003.

    In a range of cells G4:DX200

    I am making entries 1 to 11, where required. So any cell within the range would have one number i.e. 1 or 2 or 3 etc to 11. (Lets make it 15 to allow for growth)

    I want to be able to able to have the cells fill with different colours according to the number input. I’m not fussy about what colours they are as long as they are all distinguishable from each other.

    The characters need to remain black and readable.

    I’ve seen an example somewhere before that I was able to adapt but cannot find anything suitable now.

    Thanks in anticipation.
    Attached Files Attached Files
    Last edited by Russell Dawson; 04-05-2012 at 05:20 PM.
    If I helped, please don't forget to add to my reputation. (click on the star below the post)

    If the problem is solved, please: Select Thread Tools (on top of your 1st post) -> Mark this thread as Solved.

    Failure is not falling down but refusing to get up.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: VBA for conditional formatting in 2003

    Hi Russell

    Take a look here.

    http://www.excelforum.com/excel-prog...ther-cell.html
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Contributor Russell Dawson's Avatar
    Join Date
    03-01-2012
    Location
    Yorkshire, England
    MS-Off Ver
    2007
    Posts
    608

    Re: VBA for conditional formatting in 2003

    Hi Fotis,

    As you can no doubt tell, I'm new to VBA. Can't even view it in the workbook you sent. New learning curve ahead I think!

    Regards

    Russell

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: VBA for conditional formatting in 2003

    ...You are New to VBA, but i have no idea about it!!

    I had seen that post and tried to help you.

  5. #5
    Forum Contributor Russell Dawson's Avatar
    Join Date
    03-01-2012
    Location
    Yorkshire, England
    MS-Off Ver
    2007
    Posts
    608

    Re: VBA for conditional formatting in 2003

    Thanks for trying anyway. I'll post it if I get it from elsewhere.

    Regards

    Russell

  6. #6
    Forum Contributor Russell Dawson's Avatar
    Join Date
    03-01-2012
    Location
    Yorkshire, England
    MS-Off Ver
    2007
    Posts
    608

    Red face Re: VBA for conditional formatting in 2003

    Found it.


    Please Login or Register  to view this content.
    This gives you 15 different colours when cells containing numbers 1 to 15 are detected.

+ 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