I am testing to see if a Cell contains a 6 digit number within its string but currently the only way I have found to do it is to take the value out put it in another cell and then test that cell. I know there has to be a way to test if the string in a cell contains a 6 digit number. Here is what I have used:
[VBA]With Range("B9")
.FormulaR1C1 = _
"=MID(RC[-1],FIND(""("",RC[-1])+1,FIND("")"",RC[-1])-FIND(""("",RC[-1])-1)"
.Value = Range("B9").Value
If IsNumeric(.Value) And (Len(.Value) = 6 Or Len(.Value) = 5) Then
SaveSetting "BRT", "Current", "Company", "Atalanta"
Else
SaveSetting "BRT", "Current", "Company", "DeMedici"
End If
end with[/VBA]