Nimith
8 years agoContributor
Can we return an object from a function
Hi, Is there a way we can return an object to the calling function/sub from the called function? For Ex: //Called function Function Test1(btnName) Dim testObj If btnName =...
- 8 years ago
Got the solution!
You need to return as an object itself.
In the called function:
Set Test1 = testObj //while returning use the 'Set' keyword
In the calling function:
Set test = test1("CLOSE")
Thanks!