+ Reply to Thread
Results 1 to 3 of 3

Coloring a cell

Hybrid View

grumpyguppy Coloring a cell 02-12-2008, 10:31 PM
mikerickson Conditional Formatting is a... 02-12-2008, 11:04 PM
stevekirk hi grumpyguppy, welcome to... 02-12-2008, 11:07 PM
  1. #1
    Registered User
    Join Date
    02-12-2008
    Posts
    48

    Coloring a cell

    Hi. I am new to VBA for Excel. Question : how do I color a cell based on certain conditions. For instance, if cell A1 = "123", then color cell A5 red. Thanks for your help!

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    Conditional Formatting is a non-VBA Excel feature that does that.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Forum Contributor
    Join Date
    08-10-2006
    Posts
    723
    hi grumpyguppy,

    welcome to the forum

    you do not need vba

    select a5 then goto > format> conditional formating>formula is

    then type in =$a$1=123 the select format, patterns , select red

    steve

+ 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