I created a Function in a Module. In my UserForm, I call this function to return a value.
For example:
Function name1(variable1 as string, variable2 as string) as long
Dim Count as long
..Count something
name1 = Count
End function
When this function returns from the calling routine in my UserForm, why can't I get the value? I want to display the count (name1) of the function routine. Am I missing a fundamental rule here?
For example:
Function name1(variable1 as string, variable2 as string) as long
Dim Count as long
..Count something
name1 = Count
End function
When this function returns from the calling routine in my UserForm, why can't I get the value? I want to display the count (name1) of the function routine. Am I missing a fundamental rule here?