Results 1 to 4 of 4

Thread: [RESOLVED] Excel VBA

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2006
    Posts
    73

    Resolved [RESOLVED] Excel VBA

    I'm looking for some help on code,

    Basically what i want VBA to do is something like this...

    If number in cell is 0 - 5 then
    the font in the cell is red
    if number in cell is 5-10 then
    the font in the cell is orange
    else the font is green

    Any ideas?

  2. #2
    Lively Member New2vba's Avatar
    Join Date
    Sep 2005
    Location
    UK
    Posts
    95

    Re: Excel VBA

    You don't need vba to do this. You can use conditional formatting.

    First select the range you want to apply this formatting to, then go to Format > Conditional Formatting. Here you can apply (multiple) cell formats according to the value of each cell.

    Does this suit your requirements?
    Last edited by New2vba; May 15th, 2006 at 04:43 PM.
    "Those things we must learn to do, we must learn by doing" (or hope somebody else will take pity and help out )

  3. #3

    Thread Starter
    Lively Member
    Join Date
    May 2006
    Posts
    73

    Re: Excel VBA

    that worked great, thanks!

  4. #4
    Lively Member New2vba's Avatar
    Join Date
    Sep 2005
    Location
    UK
    Posts
    95

    Re: Excel VBA

    Glad to help.

    If this issue is closed, please mark your thread resolved using the thread tools menu.
    "Those things we must learn to do, we must learn by doing" (or hope somebody else will take pity and help out )

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width