Quantcast
Channel: Learn Excel : Tutorial, Tips, Videos and Much More.howto
Viewing all articles
Browse latest Browse all 10

VBA – Excel If Function in VBA code

$
0
0

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


Technorati Tags: , , , , , , , , , , , , ,


Viewing all articles
Browse latest Browse all 10

Latest Images

Trending Articles





Latest Images