This is probably a quick fix, but I am new to VBA and I'm somewhat confused. I have a module:
Function classify (r As Range)
Debug.Print("Text")
End Function
Function foo(r As Range)
Debug.Print(r.Count)
End Function
There is working code before and after the module.
If, in a cell in excel, I write =foo(A1)
and then press enter, I get the following output:
1
Text
Why? How did foo call classify? Moreover, if I just call '=classify(A1)', I get
Text
Text
Has classify somehow been set to always get called? Any help is greatly appreciated