PC Review


Reply
 
 
Kjellk
Guest
Posts: n/a
 
      26th Mar 2008
How do I format an entire row with yellow background if the value in column F
i s larger than 4500?
 
Reply With Quote
 
 
 
 
Mike H
Guest
Posts: n/a
 
      26th Mar 2008
Hi,

Select the row then

Format|conditional format
Formula us
=$F$1>4500
Select a colour
Click OK

Mike

"Kjellk" wrote:

> How do I format an entire row with yellow background if the value in column F
> i s larger than 4500?

 
Reply With Quote
 
Mike H
Guest
Posts: n/a
 
      26th Mar 2008
I may have misunderstood, formuultiple columns select the topmost row (say
row 1) and drag down on the row numbers to select multiple columns then
proceed as in my other reply but modify the formula to

=$F1>4500

Mike

"Kjellk" wrote:

> How do I format an entire row with yellow background if the value in column F
> i s larger than 4500?

 
Reply With Quote
 
Kjellk
Guest
Posts: n/a
 
      26th Mar 2008
Hi and thankyou for your fast respons. I was not clear enough when writing my
question. I will try to clarify:
When I open the worksheet I want the macro automatically to identify all
values in column F which are >4500 and colur those rows with yellow (if the
macro not already have done it earlier). Mostly it will be only one row. The
conditional format does what I wont but is only colouring the cell with the
value. I want it extened to colour the whole row.

"Mike H" skrev:

> I may have misunderstood, formuultiple columns select the topmost row (say
> row 1) and drag down on the row numbers to select multiple columns then
> proceed as in my other reply but modify the formula to
>
> =$F1>4500
>
> Mike
>
> "Kjellk" wrote:
>
> > How do I format an entire row with yellow background if the value in column F
> > i s larger than 4500?

 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a
 
      26th Mar 2008
Right click sheet tab>view code>insert this.

Private Sub Worksheet_Activate()
mc = "f"
lr = Cells(Rows.Count, mc).End(xlUp).Row
For Each c In Range(Cells(20, mc), Cells(lr, mc))
If c < 4500 Then
c.EntireRow.Interior.ColorIndex = 36
Else
c.EntireRow.Interior.ColorIndex = 0
End If
Next
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"Kjellk" <(E-Mail Removed)> wrote in message
news:5DFBBE96-74E3-48E8-9849-(E-Mail Removed)...
> Hi and thankyou for your fast respons. I was not clear enough when writing
> my
> question. I will try to clarify:
> When I open the worksheet I want the macro automatically to identify all
> values in column F which are >4500 and colur those rows with yellow (if
> the
> macro not already have done it earlier). Mostly it will be only one row.
> The
> conditional format does what I wont but is only colouring the cell with
> the
> value. I want it extened to colour the whole row.
>
> "Mike H" skrev:
>
>> I may have misunderstood, formuultiple columns select the topmost row
>> (say
>> row 1) and drag down on the row numbers to select multiple columns then
>> proceed as in my other reply but modify the formula to
>>
>> =$F1>4500
>>
>> Mike
>>
>> "Kjellk" wrote:
>>
>> > How do I format an entire row with yellow background if the value in
>> > column F
>> > i s larger than 4500?


 
Reply With Quote
 
Nigel
Guest
Posts: n/a
 
      26th Mar 2008
Please the following in "ThisWorkBook" code sheet

Private Sub Workbook_Open()
Dim xR As Long
With Sheets("Sheet1")
For xR = 1 To .Cells(.Rows.Count, "F").End(xlUp).Row
If .Cells(xR, "F") > 4500 Then
.Rows(xR).EntireRow.Interior.Color = vbYellow
End If
Next
End With
End Sub

--

Regards,
Nigel
(E-Mail Removed)



"Kjellk" <(E-Mail Removed)> wrote in message
news:5DFBBE96-74E3-48E8-9849-(E-Mail Removed)...
> Hi and thankyou for your fast respons. I was not clear enough when writing
> my
> question. I will try to clarify:
> When I open the worksheet I want the macro automatically to identify all
> values in column F which are >4500 and colur those rows with yellow (if
> the
> macro not already have done it earlier). Mostly it will be only one row.
> The
> conditional format does what I wont but is only colouring the cell with
> the
> value. I want it extened to colour the whole row.
>
> "Mike H" skrev:
>
>> I may have misunderstood, formuultiple columns select the topmost row
>> (say
>> row 1) and drag down on the row numbers to select multiple columns then
>> proceed as in my other reply but modify the formula to
>>
>> =$F1>4500
>>
>> Mike
>>
>> "Kjellk" wrote:
>>
>> > How do I format an entire row with yellow background if the value in
>> > column F
>> > i s larger than 4500?


 
Reply With Quote
 
Kjellk
Guest
Posts: n/a
 
      26th Mar 2008
Thanks gentlemen .Now you have solved one BIG problem for me.
Regards
Kjell

"Nigel" skrev:

> Please the following in "ThisWorkBook" code sheet
>
> Private Sub Workbook_Open()
> Dim xR As Long
> With Sheets("Sheet1")
> For xR = 1 To .Cells(.Rows.Count, "F").End(xlUp).Row
> If .Cells(xR, "F") > 4500 Then
> .Rows(xR).EntireRow.Interior.Color = vbYellow
> End If
> Next
> End With
> End Sub
>
> --
>
> Regards,
> Nigel
> (E-Mail Removed)
>
>
>
> "Kjellk" <(E-Mail Removed)> wrote in message
> news:5DFBBE96-74E3-48E8-9849-(E-Mail Removed)...
> > Hi and thankyou for your fast respons. I was not clear enough when writing
> > my
> > question. I will try to clarify:
> > When I open the worksheet I want the macro automatically to identify all
> > values in column F which are >4500 and colur those rows with yellow (if
> > the
> > macro not already have done it earlier). Mostly it will be only one row.
> > The
> > conditional format does what I wont but is only colouring the cell with
> > the
> > value. I want it extened to colour the whole row.
> >
> > "Mike H" skrev:
> >
> >> I may have misunderstood, formuultiple columns select the topmost row
> >> (say
> >> row 1) and drag down on the row numbers to select multiple columns then
> >> proceed as in my other reply but modify the formula to
> >>
> >> =$F1>4500
> >>
> >> Mike
> >>
> >> "Kjellk" wrote:
> >>
> >> > How do I format an entire row with yellow background if the value in
> >> > column F
> >> > i s larger than 4500?

>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to remove the colour colour swatch on side of template slide Slingshot Microsoft Powerpoint 6 13th Aug 2008 10:42 AM
how to change the colour of task bar (bottom) and title bar (top) from black to any other colour hash Windows Vista Performance 1 5th Aug 2007 01:32 AM
xl 2000 - changing chart colour doesn't update legend colour insert your name here Microsoft Excel Discussion 2 10th Sep 2006 09:25 AM
change a cell background colour to my own RGB colour requirements =?Utf-8?B?U3RlcGhlbiBEb3VnaHR5?= Microsoft Excel Misc 4 16th Jun 2006 01:08 PM
How to set the default font colour to a custom colour?eg dark teal =?Utf-8?B?dmFuYWxlcnQ=?= Microsoft Outlook Installation 1 5th May 2005 07:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:30 PM.