Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to add 1 to cells that have a neighbouring cell with the value
"Open" using VBA. This is what I have and it has melted my brain, I have a feeling that its something blindingly obvious but for the life of me I cannot figure it out. Please help. Dim d As Range Dim s As Range Set d = Range("Days") Set s = Range("Status") Do Until IsEmpty(d) If s.Value = "Open" Then d.Value = d.Value + 1 Else d.Value = d.Value End If Loop Thanks in advance, Tom |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Simple Loop Help Please | Excel Programming | |||
Simple Loop Help Please | Excel Programming | |||
Simple loop? | Excel Programming | |||
If-Else Simple Loop function | Excel Programming | |||
Some help w/ simple loop, please? | Excel Programming |