Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am having trouble with a piece of code in excel 2007 where I would like to
check a cell value in column "W" which is column 23, if equal to "Y" than update from columns "X:BV" row 2 to last row the value to "N", if not do nothing. I have attached the code I am currently using: Dim rowCounter As Double Dim bottomRow As Double For rowCounter = 2 To bottomRow If Sheet7.Cells(rowCounter, 23).Value = "Y" Then Sheet7.Range("X" + Trim(Str(rowCounter)) + ":BV" + _ Trim(Str(rowCounter))).Value = "N" End If Next rowCounter Any suggestions would be greatly appreciated. Thank you |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I make a range of cells in a column equal to another cell | New Users to Excel | |||
How do I make a range of cells equal to one cell | Excel Discussion (Misc queries) | |||
want highlight when all cells in range are equal | Excel Worksheet Functions | |||
Determine which cells from a specific range equal a certain sum | Excel Worksheet Functions | |||
How do I select a range if one cells contents is equal to another | Excel Discussion (Misc queries) |