Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I woudl like to write a macro that highlights rows if cell values in columns m,n, and o ALL = zero. Thanks, Amanda |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Right click sheet tab, view code paste this in and run it
Sub copyit() Dim MyRange As Range lastrow = Cells(Rows.Count, "M").End(xlUp).Row Set MyRange = Sheets("Sheet1").Range("M1:M" & lastrow) For Each c In MyRange If c.Value = "zero" And c.Offset(0, 1).Value = "zero" _ And c.Offset(0, 2).Value = "zero" Then c.EntireRow.Interior.ColorIndex = 3 End If Next End Sub Mike "amanda" wrote: Hello, I woudl like to write a macro that highlights rows if cell values in columns m,n, and o ALL = zero. Thanks, Amanda |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Feb 7, 11:46*pm, amanda wrote:
Hello, I woudl like to write a macro that highlights rows if cell values in columns m,n, and o ALL = zero. Thanks, Amanda Hi Amanda, Why use a macro, when conditional formatting helps in this case? Cheers, Tausif |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Highlighting Rows with VB. | Excel Worksheet Functions | |||
Highlighting Rows | Excel Discussion (Misc queries) | |||
Highlighting Rows | Excel Discussion (Misc queries) | |||
Highlighting rows? | Setting up and Configuration of Excel | |||
highlighting rows | Excel Programming |