DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Excel Add-In: COM Automation only as administrator?

Solved!
Go to solution

Hi,

 

as I tried to connect to TDM (see code below),  I've got the message that it need admin authorisation

 

Set obj = Application.COMAddIns.Item("ExcelTDM.TDMAddin")

obj.Connect = True

 

Is it really necessary to have Admin authorisation?

 

Thanks

 

Eddi

0 Kudos
Message 1 of 4
(7,104 Views)
Solution
Accepted by eddi0102

Hi Eddi,

 

as you see here, you need to start Excel in Admin mode once after theinstallation of the TDM Excel Add-In:

http://www.ni.com/white-paper/4906/en/

 

Hope this will help you.

 

Best wishes

Dennis

--------------------------------------------------------------------------------------------------------
Work with NI Hard- and Software for about 15 years now.

Certified LabVIEW Developer & TestStand Developer/Architect

--------------------------------------------------------------------------------------------------------

There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Message 2 of 4
(7,061 Views)

Hi,

 

With Excel 2013 in Windows 8 I have to do it everytime I open the file.

 

I believe it's due to compatibility configurations within applications that are not visible or tweakable for a user...

 

any thoughts or similiar experience?

 

thanking in advance,

 

Miguel

0 Kudos
Message 3 of 4
(6,419 Views)
Solution
Accepted by eddi0102

hi,

 

I ended up by foundin the answer to my problem and came back to share it.

 

i used the TDM Excel Add-In: COM Automation example of NI.

 

 

Get TDM Excel Add-In
 Dim obj As COMAddIn
 Set obj = Application.COMAddIns.Item("ExcelTDM.TDMAddin")
 obj.Connect = True

 

Just remove/comment the part

obj.Connect = True
Message 4 of 4
(6,207 Views)