ThrottleWorks
Excel Ninja
I am performing below mentioned check through my code.
If the value in first condition is blank then replace it with xyz ( or perform the action mentioned in the code).
But before performing this action I want to run an if condition.
If that condition is met then only i want to execute the (inserted) code.
I have target names in 2 different sheets in same file.
Let’s say target 1 range is sheet 1 column A range A1:A50
Now i have target 2 names in sheet 2 column B range A1:A100
The ABCD mentioned in the below code is name of the column.
This name will be present in range target 1.
I want to check if the ABCD which is present in Target 1 is also present in Target 2.
If ABCD is present in both Target 1 and Target 2 then only I want to perform the below mentioned code.
I can only think of doing with control F but that will be very cumbersome.
Can someone please suggest me better option.
If the value in first condition is blank then replace it with xyz ( or perform the action mentioned in the code).
But before performing this action I want to run an if condition.
If that condition is met then only i want to execute the (inserted) code.
I have target names in 2 different sheets in same file.
Let’s say target 1 range is sheet 1 column A range A1:A50
Now i have target 2 names in sheet 2 column B range A1:A100
The ABCD mentioned in the below code is name of the column.
This name will be present in range target 1.
I want to check if the ABCD which is present in Target 1 is also present in Target 2.
If ABCD is present in both Target 1 and Target 2 then only I want to perform the below mentioned code.
I can only think of doing with control F but that will be very cumbersome.
Can someone please suggest me better option.
Code:
If Result.Cells(i, FindCol("ABCD").Column) = "" Then
Result.Cells(i, FindCol("ABCD").Column).value = “xyz”
End If