VBAhole22
Registered User.
- Local time
- Today, 00:56
- Joined
- Jan 18, 2002
- Messages
- 117
I have a Sub that accepts a pair of x,y coordinates and takes them into an Excel spreadsheet to project them to another coordinate system and then returns a new x and y and another value.
What I would like to do is turn this into a function so that it only occupoes one line of code in my main module but returns the 3 values to me. Is there a way to have a function that returns 3 values with 3 different data types?
The main reason I want to do this is because I don't like to update my form values from the Sub. I would rather do that from the calling code in the main module. Does that make any sense?
What I would like to do is turn this into a function so that it only occupoes one line of code in my main module but returns the 3 values to me. Is there a way to have a function that returns 3 values with 3 different data types?
The main reason I want to do this is because I don't like to update my form values from the Sub. I would rather do that from the calling code in the main module. Does that make any sense?