Image may be NSFW.
Clik here to view.Excel If Function in VBA code. This VBA Function does exactly what the Excel If Function does.
Code:
Function ifCode(s1 As String, s2 As Variant, s3 As Variant)
tst = Evaluate(s1)
If tst = True Then
ifCode = s2
Else
ifCode = s3
End If
End Function
Duration : 0:4:24