Guys, why doesn't this code work without the TypeName thing?
PS: I have text in A1 and a formula in B2
What does this function do really?
Thanks,
ORoxo
Code:
Sub num()
Dim FormulaTest As Variant
FormulaTest = Teste.Range("A1:B2").HasFormula
If [B][COLOR=#ff0000]TypeName[/COLOR][/B](FormulaTest) = "Null" Then
MsgBox "Mixed"
Else
MsgBox FormulaTest
End If
End Sub
PS: I have text in A1 and a formula in B2
What does this function do really?
Thanks,
ORoxo
Last edited: