Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default How to check if an Add In is present.

Is there a way to check if a particular Add In has been installed in User's
Excel?

I have some xlVeryHidden sheets that should only be made visible if the User
has a particular Add In which interfaces with Oracle.

Thanks for your insight and assistance.

Rick

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default How to check if an Add In is present.

Rick;

In my view an Add-in is a workbook; a special workbook.
So, if you check for that workbook to be open, your problem should be
solved.

To find VBA code to do this check, do the google.
Lot's of examples for it.

--
Regards;
Mark Rosenkrantz
--
Spreadsheet Solutions
Uithoorn
Netherlands
--
E:
W:
www.spreadsheetsolutions.nl
--
"rick" wrote in message
...
Is there a way to check if a particular Add In has been installed in
User's Excel?

I have some xlVeryHidden sheets that should only be made visible if the
User has a particular Add In which interfaces with Oracle.

Thanks for your insight and assistance.

Rick


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default How to check if an Add In is present.

Rick,

You didn't give the name of your addin so this check if the VBA analysis
toolpak is loaded. Substitute your addin name


Sub isaddinloaded()
On Error Resume Next
Set chkaddin = Workbooks("ATPVBAEN.XLA")
If Err Then MsgBox "ATPVBAEN.XLA! not loaded" & _
vbLf & vbLf & "Can't continue!", vbCritical + vbOKOnly, _
"Addin not loaded": Exit Sub
Err.Clear
On Error GoTo 0
End Sub

Mike
"rick" wrote:

Is there a way to check if a particular Add In has been installed in User's
Excel?

I have some xlVeryHidden sheets that should only be made visible if the User
has a particular Add In which interfaces with Oracle.

Thanks for your insight and assistance.

Rick


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default How to check if an Add In is present.

Rick,
Try clicking on the marble, then, in the bottom right of the window, you
should see excel options button. Click and you will see the Add-In button on
the left, click to see what add-ins are in use, available or to manage.
hope this helps.
babs



"rick" wrote:

Is there a way to check if a particular Add In has been installed in User's
Excel?

I have some xlVeryHidden sheets that should only be made visible if the User
has a particular Add In which interfaces with Oracle.

Thanks for your insight and assistance.

Rick


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default How to check if an Add In is present.

Yes you can do this

If bIsBookOpen_RB("MenuAddin.xlam") = False Then .......


It use this function

Function bIsBookOpen_RB(ByRef szBookName As String) As Boolean
' Rob Bovey
On Error Resume Next
bIsBookOpen_RB = Not (Application.Workbooks(szBookName) Is Nothing)
End Function


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"Spreadsheet Solutions" wrote in message ...
Rick;

In my view an Add-in is a workbook; a special workbook.
So, if you check for that workbook to be open, your problem should be
solved.

To find VBA code to do this check, do the google.
Lot's of examples for it.

--
Regards;
Mark Rosenkrantz
--
Spreadsheet Solutions
Uithoorn
Netherlands
--
E:
W:
www.spreadsheetsolutions.nl
--
"rick" wrote in message
...
Is there a way to check if a particular Add In has been installed in
User's Excel?

I have some xlVeryHidden sheets that should only be made visible if the
User has a particular Add In which interfaces with Oracle.

Thanks for your insight and assistance.

Rick




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default How to check if an Add In is present.

Thanks Mike for the programmatic solution...I think people forget that's why
we post here and not simply in .excel ;-)
--
Toby Erkson
Excel 2003, WinXP

"Mike H" wrote in message
...
Rick,

You didn't give the name of your addin so this check if the VBA analysis
toolpak is loaded. Substitute your addin name...



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default How to check if an Add In is present.

Hi,

You are correct and here's an alternative way using your method

Sub sonic()
For Each wb In Application.AddIns
If wb.Name = "ATPVBAEN.XLA" Then GoTo Continue
Next wb
Exit Sub
Continue:
' rest of code here
End Sub

Mike

"Spreadsheet Solutions" wrote:

Rick;

In my view an Add-in is a workbook; a special workbook.
So, if you check for that workbook to be open, your problem should be
solved.

To find VBA code to do this check, do the google.
Lot's of examples for it.

--
Regards;
Mark Rosenkrantz
--
Spreadsheet Solutions
Uithoorn
Netherlands
--
E:
W:
www.spreadsheetsolutions.nl
--
"rick" wrote in message
...
Is there a way to check if a particular Add In has been installed in
User's Excel?

I have some xlVeryHidden sheets that should only be made visible if the
User has a particular Add In which interfaces with Oracle.

Thanks for your insight and assistance.

Rick



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
Check whether a sheet is present in a workbook Sagu Excel Programming 3 June 9th 08 06:26 PM
net present value Frank D Excel Worksheet Functions 1 August 15th 06 04:23 AM
Net Present Value A Razzak New Users to Excel 1 January 4th 06 10:05 AM
Present Value DME New Users to Excel 1 February 4th 05 05:34 PM
How Do I Check To See Id A Character Is Present In A Cell Minitman[_4_] Excel Programming 4 May 23rd 04 08:09 PM


All times are GMT +1. The time now is 04:37 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"