<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: VBA format a cell based on range contents</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/vba-format-a-cell-based-on-range-contents/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/vba-format-a-cell-based-on-range-contents/</link>
	<description></description>
	<lastBuildDate>Wed, 19 Jun 2013 09:51:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: vbanewb13</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/vba-format-a-cell-based-on-range-contents/#comment-63778</link>
		<dc:creator>vbanewb13</dc:creator>
		<pubDate>Wed, 20 May 2009 06:04:28 +0000</pubDate>
		<guid isPermaLink="false">#comment-63778</guid>
		<description><![CDATA[Here is what I ended up using

    &#039;See if anyone is working Saturday 2nd Shift, if they are shade support cells yellow
    If Application.WorksheetFunction.Sum(rngSat) &lt;&gt; 0 Then
    wsOT.Range(&quot;Y5:Y6,Y20,Y26,Y32,AA17,AA21:AA22,AA25,Y45:AA45&quot;).Interior.Color = vbYellow
    
    Else
    wsOT.Range(&quot;Y5:Y6,Y20,Y26,Y32,AA17,AA21:AA22,AA25,Y45:AA45&quot;).Interior.Color = vbWhite
    
    End If
    
    &#039;See if anyone is working Sunday 2nd Shift, if they are shade support cells yellow
    If Application.WorksheetFunction.Sum(rngSun) &lt;&gt; 0 Then
    wsOT.Range(&quot;Y13:Y14,Y22,Y28,Y34,Y48:AA48&quot;).Interior.Color = vbYellow
    
    Else
    wsOT.Range(&quot;Y13:Y14,Y22,Y28,Y34,Y48:AA48&quot;).Interior.Color = vbWhite
      
    End If
      
    &#039;Change background color to white if info has been provided
    For Each Cell In rngComp
        If Cell.Text = &quot;&quot; Then
            Cell.Interior.Color = vbYellow
        ElseIf Cell.Text = &quot;TBD&quot; Then
            Cell.Interior.Color = vbYellow
        Else
            Cell.Interior.Color = vbWhite
        End If
    Next Cell]]></description>
		<content:encoded><![CDATA[<p>Here is what I ended up using</p>
<p>    &#8216;See if anyone is working Saturday 2nd Shift, if they are shade support cells yellow<br />
    If Application.WorksheetFunction.Sum(rngSat) &lt;&gt; 0 Then<br />
    wsOT.Range(&#8220;Y5:Y6,Y20,Y26,Y32,AA17,AA21:AA22,AA25,Y45:AA45&#8243;).Interior.Color = vbYellow</p>
<p>    Else<br />
    wsOT.Range(&#8220;Y5:Y6,Y20,Y26,Y32,AA17,AA21:AA22,AA25,Y45:AA45&#8243;).Interior.Color = vbWhite</p>
<p>    End If</p>
<p>    &#8216;See if anyone is working Sunday 2nd Shift, if they are shade support cells yellow<br />
    If Application.WorksheetFunction.Sum(rngSun) &lt;&gt; 0 Then<br />
    wsOT.Range(&#8220;Y13:Y14,Y22,Y28,Y34,Y48:AA48&#8243;).Interior.Color = vbYellow</p>
<p>    Else<br />
    wsOT.Range(&#8220;Y13:Y14,Y22,Y28,Y34,Y48:AA48&#8243;).Interior.Color = vbWhite</p>
<p>    End If</p>
<p>    &#8216;Change background color to white if info has been provided<br />
    For Each Cell In rngComp<br />
        If Cell.Text = &#8220;&#8221; Then<br />
            Cell.Interior.Color = vbYellow<br />
        ElseIf Cell.Text = &#8220;TBD&#8221; Then<br />
            Cell.Interior.Color = vbYellow<br />
        Else<br />
            Cell.Interior.Color = vbWhite<br />
        End If<br />
    Next Cell</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/10 queries in 0.035 seconds using memcached
Object Caching 267/273 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-06-19 10:30:08 -->