Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 86
Default Testing for the presence of an AddIn?

On our trade floor some of our users have Bloomberg boxes, others use
Reuters. Each of these tools comes with an Excel AddIn to allow you to
retrieve real-time prices into a spreadsheet.

What I would like to do is write a macro to write in these formulas. In
theory this is easy, but there is one "trick", knowing whether it should
write a Bloomberg formula or Reuters one.

Is there a way to easily check for the presence of a known (by name) AddIn?
That would make this task fairly easy.

Maury
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default Testing for the presence of an AddIn?

The addins.installed property can be tested to determine if an addin is
installed, similarly saetting this property true/false will install/
uninstall it also.

eg......

If AddIns("analysis toolpak").Installed Then
MsgBox "Analysis Tool Pack Installed"
Else
MsgBox "Analysis Tool Pack Not Installed"
End If

--
Cheers
Nigel



"Maury Markowitz" wrote in
message ...
On our trade floor some of our users have Bloomberg boxes, others use
Reuters. Each of these tools comes with an Excel AddIn to allow you to
retrieve real-time prices into a spreadsheet.

What I would like to do is write a macro to write in these formulas. In
theory this is easy, but there is one "trick", knowing whether it should
write a Bloomberg formula or Reuters one.

Is there a way to easily check for the presence of a known (by name)

AddIn?
That would make this task fairly easy.

Maury



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 63
Default Testing for the presence of an AddIn?

This code will add a new sheet, list the add-ins, and
indicated TRUE/FALSE for their installed status. Modified
from the VBA help file:

Sub DisplayAddIns()
Dim ad As AddIn
Dim AddInSh As Worksheet
Dim i As Long

Set AddInSh = Sheets.Add

i = 1
For Each ad In Application.AddIns
AddInSh.Cells(i, 1) = ad.Name
AddInSh.Cells(i, 2) = ad.Installed
i = i + 1
Next

End Sub

---
HTH
Jason
Atlanta, GA, USA

-----Original Message-----
On our trade floor some of our users have Bloomberg

boxes, others use
Reuters. Each of these tools comes with an Excel AddIn

to allow you to
retrieve real-time prices into a spreadsheet.

What I would like to do is write a macro to write in

these formulas. In
theory this is easy, but there is one "trick", knowing

whether it should
write a Bloomberg formula or Reuters one.

Is there a way to easily check for the presence of a

known (by name) AddIn?
That would make this task fairly easy.

Maury
.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 86
Default Testing for the presence of an AddIn?

"Nigel" wrote:

The addins.installed property can be tested to determine if an addin is
installed, similarly saetting this property true/false will install/
uninstall it also.


Awsome, thanks!

Maury
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
please help me mark their presence. hirendra7158 Excel Worksheet Functions 3 March 13th 06 10:46 PM
count their presence hirendra7158 Excel Worksheet Functions 1 March 13th 06 08:41 PM
Need to test for file presence Grant Excel Programming 3 October 26th 04 08:57 PM
Testing for an addin? Don Wiss Excel Programming 1 July 8th 04 04:10 AM
Remove Excel AddIn from AddIn List !! Help carl Excel Programming 2 December 8th 03 03:36 PM


All times are GMT +1. The time now is 02:11 AM.

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

About Us

"It's about Microsoft Excel"