#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Auto filling a row


I need to fill a row with black if the value in the cell in column AL is
the letter "A". How would I do this?


Thanks


--
phil2006
------------------------------------------------------------------------
phil2006's Profile: http://www.excelforum.com/member.php...o&userid=35092
View this thread: http://www.excelforum.com/showthread...hreadid=566554

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 695
Default Auto filling a row

Sub xColor()
For r = 1 To Range("AL65536").End(xlUp).Offset(1, 0).Row
If Cells(r, 38) = "A" Then
Range("A" & r & ":IV" & r).Interior.ColorIndex = 1 ' The whole Row's
'Cells(r, 38).Interior.ColorIndex = 1 ' Only the cell in AL
End If
Next
End Sub



"phil2006" skrev:


I need to fill a row with black if the value in the cell in column AL is
the letter "A". How would I do this?


Thanks


--
phil2006
------------------------------------------------------------------------
phil2006's Profile: http://www.excelforum.com/member.php...o&userid=35092
View this thread: http://www.excelforum.com/showthread...hreadid=566554


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 430
Default Auto filling a row

Use Conditional Formatting;

Say you only want to affect rows 5 to 20;

Click in the Rowheader of Row 5 and (dragdown) highlite thru row 20;
Then Menu, CF, Select FormulaIs from drop-down - in box enter =$A5="A"
Format buttom Pattern Select BLACk, and Ok Out

Try it!!


"phil2006" wrote
in message :

I need to fill a row with black if the value in the cell in column AL is
the letter "A". How would I do this?


Thanks


--
phil2006
------------------------------------------------------------------------
phil2006's Profile: http://www.excelforum.com/member.php...o&userid=35092
View this thread: http://www.excelforum.com/showthread...hreadid=566554


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto filling cells across mutliple sheets Alec H Excel Discussion (Misc queries) 5 February 6th 06 02:39 PM
How do I auto fill long col. filling blanks with last filled cell MBBeginner Excel Discussion (Misc queries) 3 January 15th 06 12:44 AM
Auto Protecting cells & auto filling date ccarmock Excel Discussion (Misc queries) 7 September 30th 05 09:21 PM
auto filling columns from rows Ken Excel Discussion (Misc queries) 2 February 23rd 05 09:49 AM
Auto filling dates on other worksheets with data from a next payme JIM Excel Worksheet Functions 0 February 11th 05 04:59 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"