Pages

Wednesday, March 21, 2012

IIF-inline if

IIF-inline if-

 

Sub abc()

Dim a As Integer

a = 2

Cells(1, 1) = IIf(a > 5, "a is greater then 5", _

"a is not greater then 5")

 

End Sub

 

 

1 comment: