Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Addin problem

we have a application which creates some add-ins in
toolbar, when installed using setup.exe

We are trying to create .MSI file, after which the
application installs sucessfully but the addin doesn't
work it reads Error the blpmain.xla contains macro,
macro's may contain virus.

Following script is used to add Excel add-ins

Option Explicit
On Error Resume Next

' Define constants.
Const ADDIN = "C:\Program Files\blp\API\dde\BlpMain.xla"

' Load the add-ins into excel.
Dim objXL, objAddIn
Set objXL = CreateObject("Excel.Application")
objXL.Workbooks.Add
Set objAddIn = objXL.AddIns.Add(ADDIN, true)
objAddIn.Installed = true
objXL.Quit

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 575
Default Addin problem

Sounds like a bloomberg dde link! I'm say it's your Excel security settings,
which cannot be changed from VB or VBA. They are probably set to medium
under Tools, Options, Security, Macro Security.

Change it to low once to see whether the message disappear, then change it
back. It's what your customers should be doing anyway.

HTH,

Robin Hammond
www.enhanceddatasystems.com
"boopesh" wrote in message
...
we have a application which creates some add-ins in
toolbar, when installed using setup.exe

We are trying to create .MSI file, after which the
application installs sucessfully but the addin doesn't
work it reads Error the blpmain.xla contains macro,
macro's may contain virus.

Following script is used to add Excel add-ins

Option Explicit
On Error Resume Next

' Define constants.
Const ADDIN = "C:\Program Files\blp\API\dde\BlpMain.xla"

' Load the add-ins into excel.
Dim objXL, objAddIn
Set objXL = CreateObject("Excel.Application")
objXL.Workbooks.Add
Set objAddIn = objXL.AddIns.Add(ADDIN, true)
objAddIn.Installed = true
objXL.Quit



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
MS VB addin err DL Excel Worksheet Functions 0 May 15th 07 05:22 PM
Remove Excel AddIn from AddIn List !! Help carl Excel Programming 2 December 8th 03 03:36 PM
Addin Peter Pantus Excel Programming 4 October 11th 03 07:40 PM
AddIn Robin Clay[_2_] Excel Programming 6 September 8th 03 11:08 AM
Addin in read-only mode problem Stuart[_5_] Excel Programming 1 August 20th 03 02:41 AM


All times are GMT +1. The time now is 11:36 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"