PC Review


Reply
Thread Tools Rate Thread

Add-In Install

 
 
=?Utf-8?B?dGpo?=
Guest
Posts: n/a
 
      28th Feb 2007
How can I install an add-in using vba code.

Thank You,
 
Reply With Quote
 
 
 
 
=?Utf-8?B?SmltIFRob21saW5zb24=?=
Guest
Posts: n/a
 
      28th Feb 2007
The code goes generally like this... check if the addin is installed. If not
add the addin and then install it...

If Not AddIns("Hyperion Essbase OLAP Server DLL").Installed Then
On Error Resume Next
Application.AddIns.Add "C:\Hyperion\Essbase\Bin\essxleqd.xla"
Application.AddIns.Add "C:\Hyperion\Essbase\Bin\essexcln.xll"
AddIns("Hyperion Essbase OLAP Server DLL").Installed = True
On Error GoTo ErrorHandler
End If

--
HTH...

Jim Thomlinson


"tjh" wrote:

> How can I install an add-in using vba code.
>
> Thank You,

 
Reply With Quote
 
Chip Pearson
Guest
Posts: n/a
 
      28th Feb 2007
Do you mean to load an add-in that is already known to Excel (listed in the
Add-Is dialog) or to add a new add-in XLA file to Excel's list of add-ins?
Try something like

Sub AAA()
On Error Resume Next
''''''''''''''''''''''''''''''''
' Load Existing Add-In
''''''''''''''''''''''''''''''''
Application.AddIns("Cell Contents Viewer").Installed = True
If Err.Number <> 0 Then
''''''''''''''''''''''''''''''''''''''
' Load New Add-In
''''''''''''''''''''''''''''''''''''''''
Application.AddIns.Add Filename:="C:\Path\whatever.xla"
End If
End Sub


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)

"tjh" <(E-Mail Removed)> wrote in message
news:A2750599-4B37-4B2F-B896-(E-Mail Removed)...
> How can I install an add-in using vba code.
>
> Thank You,



 
Reply With Quote
 
=?Utf-8?B?dGpo?=
Guest
Posts: n/a
 
      28th Feb 2007
I would like to install the add-in from a specific file directory, no matter
if it currently installed or not. Allowing my users to acquire the Add-in
initially, or update the Add-In when changes/updates are made. Essentially, I
do not want them to know where the add-in is coming from, but to have it
installed and up to date on their computer. My thoughts are to simply have a
button in excel to install/refresh the add-in.

Thanks,



"Chip Pearson" wrote:

> Do you mean to load an add-in that is already known to Excel (listed in the
> Add-Is dialog) or to add a new add-in XLA file to Excel's list of add-ins?
> Try something like
>
> Sub AAA()
> On Error Resume Next
> ''''''''''''''''''''''''''''''''
> ' Load Existing Add-In
> ''''''''''''''''''''''''''''''''
> Application.AddIns("Cell Contents Viewer").Installed = True
> If Err.Number <> 0 Then
> ''''''''''''''''''''''''''''''''''''''
> ' Load New Add-In
> ''''''''''''''''''''''''''''''''''''''''
> Application.AddIns.Add Filename:="C:\Path\whatever.xla"
> End If
> End Sub
>
>
> --
> Cordially,
> Chip Pearson
> Microsoft MVP - Excel
> Pearson Software Consulting, LLC
> www.cpearson.com
> (email address is on the web site)
>
> "tjh" <(E-Mail Removed)> wrote in message
> news:A2750599-4B37-4B2F-B896-(E-Mail Removed)...
> > How can I install an add-in using vba code.
> >
> > Thank You,

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't Install Vista Home premium upgrade - "can't install a file and quits vincen11@msu.edu Windows Vista Installation 3 21st Feb 2007 02:10 AM
MMc installation trick. 1. install driver for the video card "vivo, aiw" reboot" 2. install ati dvd decoder. reboot 3. install mmc for all the thing that come with your videocard. buttom line. DDC ATI Video Cards 7 4th Aug 2005 08:20 AM
Automated Install From Admin Install Fails to Run after Install Andrew King Anti-Spyware Installation 1 8th Jan 2005 06:47 AM
Install shows Win Install dialog box command lines then install st =?Utf-8?B?Qm9iUGFya3M=?= Windows XP General 0 17th Dec 2004 05:21 PM
Minolta QMS 2300 install - install again - install again ... Windows XP Drivers 1 3rd Jul 2004 07:54 PM


Features
 

Advertising
 

Newsgroups
 


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