Ajit Kiran
Member
Hello Guys,
I'm looking for a VBA code which helps loop through a column and assigns a value in another column if a condition is met. For eg., if the value in D3 is "C" then Value in E3 must automatically turn to "Same day cancel." I'm able to accomplish this in a particular cell but not in a whole range.
So, the code should be able to loop through a whole range in Col C i.e from C1 to C1000 and accordingly input a value in Col E should the criteria of Value "C" is met there.
Please would someone be able to help me with this?
Thanks much,
Ajit Kiran
I'm looking for a VBA code which helps loop through a column and assigns a value in another column if a condition is met. For eg., if the value in D3 is "C" then Value in E3 must automatically turn to "Same day cancel." I'm able to accomplish this in a particular cell but not in a whole range.
Code:
Sub valueinput()
If Range("C3").Value = "C" Then Range("E3").Value = "Same day cancel"
End Sub
So, the code should be able to loop through a whole range in Col C i.e from C1 to C1000 and accordingly input a value in Col E should the criteria of Value "C" is met there.
Please would someone be able to help me with this?
Thanks much,
Ajit Kiran