Results 1 to 3 of 3

Thread: [RESOLVED] excel conditional formatting

  1. #1

    Thread Starter
    Fanatic Member merhaba's Avatar
    Join Date
    Sep 2002
    Location
    Istanbul,Bartin-Gallipoli(Gelibolu-Canakkale)
    Posts
    601

    Resolved [RESOLVED] excel conditional formatting

    Hi, I have an excel page full of numbers..I need to formatting up to ten numbers
    I mean I want all my ten numbers to be of red colour.But
    When I apply the formatting using the “Cell Value Is” method,
    I am allowed up to three conditions.Is there a method of formatting more than 3 cells..Thanks

  2. #2
    Fanatic Member VBAhack's Avatar
    Join Date
    Dec 2004
    Location
    Sector 000
    Posts
    617
    Last edited by VBAhack; Jun 5th, 2007 at 11:06 AM.

  3. #3

    Thread Starter
    Fanatic Member merhaba's Avatar
    Join Date
    Sep 2002
    Location
    Istanbul,Bartin-Gallipoli(Gelibolu-Canakkale)
    Posts
    601

    Re: excel conditional formatting

    Thanks VBhack..
    Can we do the same coding it in Javascript?
    such as in..
    if random numbers that are created equal to 10,20,30,40,50,60 ,let these numbers be red...
    thanks...
    vb Code:
    1. <html>
    2.  
    3. <body>
    4. <script>  
    5. var dur=setInterval("onnumara()",1000)
    6. var nom=0;
    7. function onnumara()
    8. {
    9.    for(a=1;a<=5;a++)
    10.    {               
    11.    say1=Math.floor(Math.random()*40)+1;
    12.  
    13.  
    14.        document.getElementById("kutu1").innerHTML+=".."+say1+"..";   
    15.    
    16.    
    17.    }   
    18.      
    19.    
    20.          
    21.             for(b=1;b<=5;b++)
    22.    {               
    23.    
    24.    say2=40+(Math.floor(Math.random()*40))+1;
    25.  
    26.        
    27.       document.getElementById("kutu1").innerHTML+=".."+"<font color=blue>"+say2+"</font>"+"..";
    28.      
    29.      
    30.    }
    31.     nom++; 
    32.     document.getElementById("buto").value=nom+"..."+"yaz bakalım";
    33.         document.getElementById("kutu1").innerHTML+="<font color=red>"+"-------------"+nom+"</font>";
    34.          document.getElementById("kutu1").innerHTML+="<br>";   
    35.          
    36.                 if(nom==50)
    37.                 {
    38.                 clearInterval(dur)
    39.                 document.bgColor="pink";  
    40.                    
    41.                 }
    42.      }
    43. </script>  
    44. <div id="kutu1"style="position:absolute;top:50;left:50;background-color:silver;width:100;"></div>
    45. <input type=button id="buto" value="yazbakalım"onclick="onnumara()">
    46.  
    47. </body>
    48. </html>

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