+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    07-28-2009
    Location
    Grand Haven, MI USA
    MS-Off Ver
    MS Office 2007 Standard Edition
    Posts
    17

    Question Cell Color change by state of other feild

    Hi all I'm new here. If anyone can help me I would greatly appreciate it. I'm playing with an excel file that has 3 different spreadsheets and basically the same layout just different product lines on each sheet. I need to find a snipet of VB code to change cell color depending on if another cell is used(filled in) or if it is blank. I'm very limited to my VB skills but can tinker enough to get what I need if someone points me in the right direction.

    here is an example of what I'm trying to accomplish using the following Columns:

    ItemNo[A], QUOTEREQUESTDATE[B], SUBMITTOSALESDATE[C] APPROVALRECEIVEDDATE[D], RELEASETOMFGDATE[E]

    EXPECTED RESULTS TO CHANGE CELL[A] COLOR TO RED CELL:
    [B] USED, [C] BLANK, [D] BLANK, [E] BLANK

    EXPECTED RESULTS TO CHANGE CELL[A] COLOR TO ORANGE CELL:
    [B] USED, [C] USED, [D] BLANK, [E] BLANK

    EXPECTED RESULTS TO CHANGE CELL[A] COLOR TO YELLOW CELL:
    [B] USED, [C] USED, [D] USED, [E] BLANK

    EXPECTED RESULTS TO CHANGE CELL[A] COLOR TO GREEN CELL:
    [B] USED, [C] USED, [D] USED, [E] USED

    Thanks in advance for any help..
    Click here to download a copy of the excel file.

  2. #2
    Forum Moderator teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    2003 & 2010
    Posts
    10,042

    Re: Cell Color change by state of other feild

    Well, maybe the best way would be to post this in an Excel forum, not the Outlook forum.
    teylyn
    Microsoft MVP - Excel
    At Excelforum, you can say "Thank you!" by clicking the icon below the post.

    Avoid pie charts with more than two data points. Why? See here (pdf, 559 kb). The only acceptable pie chart is here.

  3. #3
    Valued Forum Contributor SDruley's Avatar
    Join Date
    04-27-2009
    Location
    Conover, NC
    MS-Off Ver
    Excel 2010 64 bit
    Posts
    379

    Re: Cell Color change by state of other feild

    Please check the attached file. If you have Excel 2007 you can use conditional formatting to accomplish your objectives.
    You explained your situation very well.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    07-28-2009
    Location
    Grand Haven, MI USA
    MS-Off Ver
    MS Office 2007 Standard Edition
    Posts
    17

    Re: Cell Color change by state of other feild

    Thanks for your help...I have Excel 2003.

    I did not realize I was in the outlook programming forum...I have reposted this issue in the excel programming forum....Good looking out.
    http://www.excelforum.com/excel-prog...ml#post2136091

    Any further responses will be in that forum.

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