I am trying to use the following code
Code: Select all
Declare Function TM1_API2HAN Lib "tm1.xll" () As Long
Compiling is successful but when executing to
Code: Select all
getUserHandle = TM1_API2HAN()
This code is originally used in VBA and can be run successfully. Not sure how I can convert it into VB.net to load and use it correctly?