<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0">
    <channel>
        <title>Lowyat.NET: Latest topics by pc_sunshine_day</title>
        <description></description>
        <link>http://forum.lowyat.net/</link>
        <lastBuildDate>Mon, 09 Nov 2026 00:12:18 +0800</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>[extreme urgent]set initial conditional formating</title>
            <link>http://forum.lowyat.net/topic/483442</link>
            <description>here&amp;#39;s my coding tht i need to apply my excel cond formating,NOW &lt;br /&gt;my problem is ... the column will turned green itself though no value was added in. may i noe how to set the initial color to no fill?&lt;br /&gt;THANKS&amp;#33;&amp;#33; &lt;!--emo&amp;:help:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/icon_question.gif' border='0' style='vertical-align:middle' alt='icon_question.gif' /&gt;&lt;!--endemo--&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;#39;macro by sunshine_day&lt;br /&gt;&lt;br /&gt;Sub Macro1()&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Dim intLoopX As Integer&lt;br /&gt;Dim intLoopY As Integer&lt;br /&gt;&lt;br /&gt;Dim intX As Integer&lt;br /&gt;Dim intY As Integer&lt;br /&gt;&lt;br /&gt;intX = 47&lt;br /&gt;intY = 240&lt;br /&gt;&lt;br /&gt;intLoopX = 5&lt;br /&gt;While intLoopX &amp;lt; intX&lt;br /&gt;&lt;br /&gt;    intLoopY = 4&lt;br /&gt;    While intLoopY &amp;lt; intY&lt;br /&gt;        &lt;br /&gt;        &amp;#39; compare if both also = 0&lt;br /&gt;        If Worksheets(&amp;quot;Country Performance&amp;quot;).Cells(intLoopX, intLoopY) = 0 And Worksheets(&amp;quot;Country Performance&amp;quot;).Cells(intLoopX, intLoopY + 2) = 0 Then&lt;br /&gt;            Worksheets(&amp;quot;Country Performance&amp;quot;).Cells(intLoopX, intLoopY + 2).Interior.Color = RGB(0, 254, 0)&lt;br /&gt;        Else&lt;br /&gt;            If Worksheets(&amp;quot;Country Performance&amp;quot;).Cells(intLoopX, intLoopY) &amp;lt; Worksheets(&amp;quot;Country Performance&amp;quot;).Cells(intLoopX, intLoopY + 2) Then&lt;br /&gt;                &amp;#39; when bigger&lt;br /&gt;                Worksheets(&amp;quot;Country Performance&amp;quot;).Cells(intLoopX, intLoopY + 2).Interior.Color = RGB(255, 0, 0)&lt;br /&gt;            Else&lt;br /&gt;                If Worksheets(&amp;quot;Country Performance&amp;quot;).Cells(intLoopX, intLoopY) &amp;gt; Worksheets(&amp;quot;Country Performance&amp;quot;).Cells(intLoopX, intLoopY + 2) Then&lt;br /&gt;                    &amp;#39; when smaller&lt;br /&gt;                    Worksheets(&amp;quot;Country Performance&amp;quot;).Cells(intLoopX, intLoopY + 2).Interior.Color = RGB(0, 254, 0)&lt;br /&gt;                Else&lt;br /&gt;                    &amp;#39; equal&lt;br /&gt;                    Worksheets(&amp;quot;Country Performance&amp;quot;).Cells(intLoopX, intLoopY + 2).Interior.Color = RGB(255, 255, 0)&lt;br /&gt;                End If&lt;br /&gt;            End If&lt;br /&gt;        End If&lt;br /&gt;                            &lt;br /&gt;        intLoopY = intLoopY + 2&lt;br /&gt;    Wend&lt;br /&gt;    intLoopX = intLoopX + 1&lt;br /&gt;Wend&lt;br /&gt;&lt;br /&gt;End Sub</description>
            <author>pc_sunshine_day</author>
            <category>Codemasters</category>
            <pubDate>Thu, 05 Jul 2007 10:41:34 +0800</pubDate>
        </item>
        <item>
            <title>[hyper urgent] need to pass up tmr&amp;#33; cond formating</title>
            <link>http://forum.lowyat.net/topic/479905</link>
            <description>Here is wat i done for my excel.&lt;br /&gt;the problem here is i want those condition to be apply in two alternate column&lt;br /&gt;that means one column got the cond then leave a blank then apply tht conditon again.&lt;br /&gt;let say below is the column in excel:&lt;br /&gt;_______________________________________________________________&lt;br /&gt;apply condition    | no condition  | apply condition  | no condition   ...&lt;br /&gt;_______________________________________________________________&lt;br /&gt;&lt;br /&gt;so issit the intLoopX or intLoopY shud be +2 ?but it cant work&amp;#33;&amp;#33;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Sub Macro1()&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Dim intLoopX As Integer&lt;br /&gt;Dim intLoopY As Integer&lt;br /&gt;&lt;br /&gt;Dim intX As Integer&lt;br /&gt;Dim intY As Integer&lt;br /&gt;&lt;br /&gt;intX = 11&lt;br /&gt;intY = 11&lt;br /&gt;&lt;br /&gt;intLoopX = 1&lt;br /&gt;While intLoopX &amp;lt; intX&lt;br /&gt;&lt;br /&gt;    intLoopY = 2&lt;br /&gt;    While intLoopY &amp;lt; intY&lt;br /&gt;        &lt;br /&gt;        &amp;#39; compare if both also = 0&lt;br /&gt;        If Worksheets(&amp;quot;Sheet1&amp;quot;).Cells(intLoopX, intLoopY) = 0 And Worksheets(&amp;quot;Sheet1&amp;quot;).Cells(intLoopX, intLoopY + 2) = 0 Then&lt;br /&gt;            Worksheets(&amp;quot;Sheet1&amp;quot;).Cells(intLoopX, intLoopY).Interior.Color = RGB(0, 254, 0)&lt;br /&gt;        Else&lt;br /&gt;            If Worksheets(&amp;quot;Sheet1&amp;quot;).Cells(intLoopX, intLoopY) &amp;gt; Worksheets(&amp;quot;Sheet1&amp;quot;).Cells(intLoopX, intLoopY + 2) Then&lt;br /&gt;                &amp;#39; when bigger&lt;br /&gt;                Worksheets(&amp;quot;Sheet1&amp;quot;).Cells(intLoopX, intLoopY).Interior.Color = RGB(255, 0, 0)&lt;br /&gt;            Else&lt;br /&gt;                If Worksheets(&amp;quot;Sheet1&amp;quot;).Cells(intLoopX, intLoopY) &amp;lt; Worksheets(&amp;quot;Sheet1&amp;quot;).Cells(intLoopX, intLoopY + 2) Then&lt;br /&gt;                    &amp;#39; when smaller&lt;br /&gt;                    Worksheets(&amp;quot;Sheet1&amp;quot;).Cells(intLoopX, intLoopY).Interior.Color = RGB(0, 254, 0)&lt;br /&gt;                Else&lt;br /&gt;                    &amp;#39; equal&lt;br /&gt;                    Worksheets(&amp;quot;Sheet1&amp;quot;).Cells(intLoopX, intLoopY).Interior.Color = RGB(255, 255, 0)&lt;br /&gt;                End If&lt;br /&gt;            End If&lt;br /&gt;        End If&lt;br /&gt;                            &lt;br /&gt;        intLoopY = intLoopY + 2&lt;br /&gt;    Wend&lt;br /&gt;    intLoopX = intLoopX + 1&lt;br /&gt;Wend&lt;br /&gt;&lt;br /&gt;End Sub</description>
            <author>pc_sunshine_day</author>
            <category>Codemasters</category>
            <pubDate>Thu, 28 Jun 2007 10:54:59 +0800</pubDate>
        </item>
        <item>
            <title>[urgent]MACRO FOR CONDITIONAL FORMATING IN EXCEL</title>
            <link>http://forum.lowyat.net/topic/471930</link>
            <description>&lt;!--emo&amp;:(--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif' /&gt;&lt;!--endemo--&gt; please HELPpppp&amp;#33;&amp;#33; URGENT&amp;#33;&lt;br /&gt;&lt;br /&gt;d &lt;!--emo&amp;:stars:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/rclxub.gif' border='0' style='vertical-align:middle' alt='rclxub.gif' /&gt;&lt;!--endemo--&gt; o anyone know how to do the progrmming for the conditional formating in Ms.Excel? &lt;br /&gt;&lt;br /&gt;eg:&lt;br /&gt;result year 2000: 50&lt;br /&gt;result year 2001: 77&lt;br /&gt;result year 2002 :78&lt;br /&gt;&lt;br /&gt;condition :&lt;br /&gt;-if the result of the current year BIGGER than previous then the cell will be RED in color&lt;br /&gt;&lt;br /&gt;-if the result of the current year EQUAL previous then the cell will be YELLOW in color&lt;br /&gt;&lt;br /&gt;-if the result of the current year LESS than previous OR both are 0 then the cell will be GREEN in color&lt;br /&gt;&lt;br /&gt;this conditions are entitled to apply to ALL CELLS in the column. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;can anyone help me with this? THANK YOU&amp;#33; &lt;!--emo&amp;:sweat:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/sweat.gif' border='0' style='vertical-align:middle' alt='sweat.gif' /&gt;&lt;!--endemo--&gt; &lt;br /&gt;YOUR HELP WILL BE HIGHLY APPRECIATED&amp;#33;  &lt;!--emo&amp;:peace:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/icon_rolleyes.gif' border='0' style='vertical-align:middle' alt='icon_rolleyes.gif' /&gt;&lt;!--endemo--&gt; &lt;br /&gt;</description>
            <author>pc_sunshine_day</author>
            <category>Codemasters</category>
            <pubDate>Wed, 13 Jun 2007 10:25:30 +0800</pubDate>
        </item>
    </channel>
</rss>
