Thread
:
User defined function gives #NAME?
View Single Post
#
2
Posted to microsoft.public.excel.programming
Bob Phillips
external usenet poster
Posts: 10,593
User defined function gives #NAME?
Try using
Personal.xls!SigTest(cell1, cell2, cell3, cell4)
in the worksheet
--
HTH
Bob Phillips
(replace somewhere in email address with gmail if mailing direct)
"John Wirtr" <John
wrote in message
...
I've writtena User Defined Function that yields #NAME? when I use it in a
spread sheet. Why is this? The code for the function is below.
The code is in a module in PERSONAL.xls. I have also tried it in a module
in the workbook where it is used. Same result.
This UDF used to work for me. What am I doing wrong?
John Wirt
Function SigTest(cell1, cell2, cell3, cell4)
Dim testval As Long
testval = (cell1 - cell2) * (cell1 - cell2)
testval = testval / (cell3 * cell3 + cell4 * cell4)
If testval 3.841447 Then
SigTest = "*"
Else
SigTest = ""
End If
End Function
Reply With Quote
Bob Phillips
View Public Profile
Find all posts by Bob Phillips