Hello,
I have the code below:
Sub editrange
Dim nLastRow, i As Integer
Set wbCurrent = ActiveWorkbook
Set WS = wbCurrent.Worksheets("Sheet1")
nLastRow = WS.Cells.Find("*", LookIn:=xlValues, searchorder:=xlByRows, searchdirection:=xlPrevious).Row
For i = nLastRow To 13 Step -1
If InStr(1, WS.Cells(i, 7).Value, "Blue", vbTextCompare) > 0 Then
Else
this is where i want to put in a value in a specific range (edit all cells in row(s) that has a "b" in row 2)
End If
Next i
End Sub
I have the code below:
Sub editrange
Dim nLastRow, i As Integer
Set wbCurrent = ActiveWorkbook
Set WS = wbCurrent.Worksheets("Sheet1")
nLastRow = WS.Cells.Find("*", LookIn:=xlValues, searchorder:=xlByRows, searchdirection:=xlPrevious).Row
For i = nLastRow To 13 Step -1
If InStr(1, WS.Cells(i, 7).Value, "Blue", vbTextCompare) > 0 Then
Else
this is where i want to put in a value in a specific range (edit all cells in row(s) that has a "b" in row 2)
End If
Next i
End Sub