Can anyone explain why this VBA function terminates on the line that defines MyArray
?
Function FindEndPinyin2(Rge As Range) As Integer
Dim MyArray() As String
MyArray = Array("cat", "dog")
FindEndPinyin2 = 2
End Function
The function, simply exits and returns a #Value! error once it reaches the line MyArray = Array(
"Cat", "Dog")
I realize this function doesn't do anything meaningful. It's a simplified example.
Thanks in advance