G
Guest
I'm trying to write some code that will use for/next to evaluate cell values
in the same row one cell at a time. I cant figure out how to name the cell
addresses programatically.
I want it to go through row 10 until it finds an empty cell, my code is
probably flawed in many ways:
For col = 3 To 21 Step 1
CellAddy = col & "10"
Range(CellAddy).Select
If cellvalue <> "" Then
Num = Num + 1
Else
messagebox.show(Num &"is the number")
End If
Next col
Please point me to the proper way to do this.
in the same row one cell at a time. I cant figure out how to name the cell
addresses programatically.
I want it to go through row 10 until it finds an empty cell, my code is
probably flawed in many ways:
For col = 3 To 21 Step 1
CellAddy = col & "10"
Range(CellAddy).Select
If cellvalue <> "" Then
Num = Num + 1
Else
messagebox.show(Num &"is the number")
End If
Next col
Please point me to the proper way to do this.