Is it possible to return more than one variable? If so how?
@Tim S HI Dave,
Only one type can be set as a return type...
Which is why Dave is suggesting the one type hold more than one value. If you only need two, then a Pair is viable. Or an array of variants. Or a dictionary or JSONItem. Or an object that has multiple properties.
Anything that lets you return multiple values in that "one return value". What works best for any given scenario depends on the scenario...
Depending on your needs, you can wrap the variables you want to return in
The return-value then is defined by the type of wrapper you used.
Or you use the methods parameters with ByRef.