Hello,
I'm working on a project to create a web based solution for use with our OLAP software (Applix TM1 specifically).
The relevant code is as follows:
The problem lies in the fact that the 'tm1_api2han' macro only exists within an Excel Add-In called TM1 (tm1p is the actual file name) that loads automatically when Excel starts. The only exception is that this ad-in doesn't load when Excel is opened in the manner above. So my ultimate question is how can I reference this add-in in my vb.NET program?
Any help/suggestions is greatly appreciated even if it is outside the scope of my question.
I'm working on a project to create a web based solution for use with our OLAP software (Applix TM1 specifically).
The relevant code is as follows:
VB.NET:
Dim oExcel As Excel.Application
Dim oBook As Excel.WorkbookClass
Dim oBooks As Excel.Workbooks
Dim tm1 As New TM1Admin 'TM1Admin contains all TM1 function declarations mainly used later in code
'Start Excel and open the workbook.
oExcel = CreateObject("Excel.Application", "\\localhost")
oExcel.Visible = False
oBooks = oExcel.Workbooks
oBook = oBooks.Open("C:\test.xls")
tm1.hUser = oExcel.Run("tm1_api2han") 'hUser is of type Long
Any help/suggestions is greatly appreciated even if it is outside the scope of my question.
Last edited by a moderator: