T
Tom
I testing the function below from John
Walkenbach's "Excel 2002 Functions".
&&&&&&&&&&&&&
Function GreetMe()
Select Case Time
Case Is < 0.5
GreetMe = "Good Morning"
Case 0.5 To 0.75
GreetMe = "Good Afternoon"
Case Else
GreetMe = "Good Evening"
End Select
End Function
&&&&&&&&&&&&&
I added this function to VBAProject/Module1 (right click
the sheet's tab und click View Code).
In the worksheet, I then enter the following:
- Cell A1: 0.5
- Cell B1: =GreetMe(A1)
I did expect to see the value of "Good Afternoon" in cell
B1. However, it shows "#Name?". What am I doing wrong?
Thanks,
Tom
Walkenbach's "Excel 2002 Functions".
&&&&&&&&&&&&&
Function GreetMe()
Select Case Time
Case Is < 0.5
GreetMe = "Good Morning"
Case 0.5 To 0.75
GreetMe = "Good Afternoon"
Case Else
GreetMe = "Good Evening"
End Select
End Function
&&&&&&&&&&&&&
I added this function to VBAProject/Module1 (right click
the sheet's tab und click View Code).
In the worksheet, I then enter the following:
- Cell A1: 0.5
- Cell B1: =GreetMe(A1)
I did expect to see the value of "Good Afternoon" in cell
B1. However, it shows "#Name?". What am I doing wrong?
Thanks,
Tom