I used the IIF function as described in the forum, but now compile i from this alert : Return type (Sub signature) should be set explicitly. How to correct ? Thanks
this is the code
Sub IIF(c As Boolean, TrueRes As String, FalseRes As String)
If c Then Return TrueRes Else Return FalseRes
End Sub
this is the code
Sub IIF(c As Boolean, TrueRes As String, FalseRes As String)
If c Then Return TrueRes Else Return FalseRes
End Sub