excel vba ternary

The solution for “excel vba ternary” can be found here. The following code will assist you in solving the problem.

Sub condition()
temp = 15
msgbox IIf(temp >= 20, “hot”, “cold”)
End Sub

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

Similar Posts