Hi,
Please can someone help me?
I have this code and it works fine if I just want it to look at column B to see if it has a minimum of 7 characters anything less except 0 and it calls for a macro called ColumnB.
What I would like if possible is the following:
If Column B is less than 7 characters = ColumnB macro
If Column B has 7 or more characters but Column C has nothing = ColumnB macro
If Column B has 7 or more characters and Column C has a value then carry on
Any help would be much appreciated.
Kind Regards
Dan
Please can someone help me?
I have this code and it works fine if I just want it to look at column B to see if it has a minimum of 7 characters anything less except 0 and it calls for a macro called ColumnB.
Code:
'Update Only if Column 'B' is 7 or more characters.'Try and add Column C into the code and see if it has a value?
sValueA = Trim(ActiveSheet.Cells(target.Row, "B").Value)
If Len(sValueA) = 0 Then
GoTo HEREB
Else
If Len(sValueA) < 7 Then
ColumnB
Exit Sub
End If
What I would like if possible is the following:
If Column B is less than 7 characters = ColumnB macro
If Column B has 7 or more characters but Column C has nothing = ColumnB macro
If Column B has 7 or more characters and Column C has a value then carry on
Any help would be much appreciated.
Kind Regards
Dan
Last edited: