Function MakeIceCream(VanillaToBeAdded As Boolean) As String If VanillaToBeAdded Then MakeIceCream = "Vanilla" Else MakeIceCream = "No Vanilla" End IfEnd FunctionSub Hungry() Debug.Print MakeIceCream(True)End Sub