Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Mas Mas is offline
external usenet poster
 
Posts: 3
Default Automatically installing and running the Analysis ToolPak add-in

Hi all,

I was wondering if it is at all possible to create some coding that I
can add to my worksheet that will load the Analysis ToolPak add-in (if
not already installed), activate it (so I can use one of it's
functions), automatically recalculate the worksheet and then deactivate
the add-in once my worksheet has been updated.

This would save me a lot of time manually installing the add-in
personally on every computer of the people who want to review my worksheet.

Thanks in advance

Mas
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Automatically installing and running the Analysis ToolPak add-in

Here is some code by Dana deLouise that installs the solver addin. You
should be able to adapt it to the analysis toolpak:

ub SolverInstall()
'// Dana DeLouis
Dim wb As Workbook

On Error Resume Next
' Set a Reference to the workbook that will hold Solver
Set wb = ActiveWorkbook

With wb.VBProject.References
.Remove .Item("SOLVER")
End With

With AddIns("Solver Add-In")
.Installed = False
.Installed = True
wb.VBProject.References.AddFromFile .FullName
End With
End Sub

Application.Calculate

will do a calculate.

--
Regards,
Tom Ogilvy


"Mas" wrote:

Hi all,

I was wondering if it is at all possible to create some coding that I
can add to my worksheet that will load the Analysis ToolPak add-in (if
not already installed), activate it (so I can use one of it's
functions), automatically recalculate the worksheet and then deactivate
the add-in once my worksheet has been updated.

This would save me a lot of time manually installing the add-in
personally on every computer of the people who want to review my worksheet.

Thanks in advance

Mas

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
Excel 2002 Analysis ToolPak Regression Analysis Help Requested MH Excel Worksheet Functions 1 February 28th 09 07:16 AM
Analysis Toolpak-Confidence Level and data analysis questions MH Excel Worksheet Functions 0 January 3rd 09 06:15 PM
installing Analysis toolpak in Excel 2002 without the installation Obrad Excel Discussion (Misc queries) 1 July 31st 08 06:07 PM
installing add-in analysis toolpak Janiv Ratson Excel Discussion (Misc queries) 3 June 17th 05 11:49 AM
Analysis ToolPak installed but no Data Analysis option Eric Stephens Excel Discussion (Misc queries) 3 February 2nd 05 09:17 PM


All times are GMT +1. The time now is 09:43 PM.

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"