Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Installation of "Add-Ins" in code

When my Excel workbook is opened, I want the Excel code to check to see if
the Add-Ins "Analysis Toolpack" is already installed on the user's Excel
application. Because I am using several of the Analysis Toolpack functions
in my worksbook, I need the Add-Inns to be installed. If it isn't installed,
how do I code Excel to automatically install the "Add-Ins" when the workbook
is opened?

Similary, I need the Tools Options Calculation to be on MANUAL for the
workbook to function normally. Am I able to include that in my code?

Thanks in anticipation

Bill Hall
  #2   Report Post  
Posted to microsoft.public.excel.programming
ben ben is offline
external usenet poster
 
Posts: 232
Default Installation of "Add-Ins" in code

add-ins no idea but calculation

application.calculation = xlmanual

application.calculation = xlautomatic
to return to normal

--
When you lose your mind, you free your life.


"Bill Hall" wrote:

When my Excel workbook is opened, I want the Excel code to check to see if
the Add-Ins "Analysis Toolpack" is already installed on the user's Excel
application. Because I am using several of the Analysis Toolpack functions
in my worksbook, I need the Add-Inns to be installed. If it isn't installed,
how do I code Excel to automatically install the "Add-Ins" when the workbook
is opened?

Similary, I need the Tools Options Calculation to be on MANUAL for the
workbook to function normally. Am I able to include that in my code?

Thanks in anticipation

Bill Hall

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Installation of "Add-Ins" in code

Calculation is an application level setting and it is utilized before your
code would run, so you can't control that for the opening of your workbook.

Sub AddinInstall()
With Application.AddIns("Analysis Toolpak - VBA")
If .Installed = False Then
.Installed = True
End If
End With
With Application.AddIns("Analysis Toolpak")
If .Installed = False Then
.Installed = True
End If
End With
End Sub


--
Regards,
Tom Ogilvy



"Bill Hall" wrote in message
...
When my Excel workbook is opened, I want the Excel code to check to see if
the Add-Ins "Analysis Toolpack" is already installed on the user's Excel
application. Because I am using several of the Analysis Toolpack

functions
in my worksbook, I need the Add-Inns to be installed. If it isn't

installed,
how do I code Excel to automatically install the "Add-Ins" when the

workbook
is opened?

Similary, I need the Tools Options Calculation to be on MANUAL for the
workbook to function normally. Am I able to include that in my code?

Thanks in anticipation

Bill Hall



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Installation of "Add-Ins" in code

hi Ben, thanks for that; strange how we asked a similar question re Add-Ins
almost at the same time!

Bill

"ben" wrote:

add-ins no idea but calculation

application.calculation = xlmanual

application.calculation = xlautomatic
to return to normal

--
When you lose your mind, you free your life.


"Bill Hall" wrote:

When my Excel workbook is opened, I want the Excel code to check to see if
the Add-Ins "Analysis Toolpack" is already installed on the user's Excel
application. Because I am using several of the Analysis Toolpack functions
in my worksbook, I need the Add-Inns to be installed. If it isn't installed,
how do I code Excel to automatically install the "Add-Ins" when the workbook
is opened?

Similary, I need the Tools Options Calculation to be on MANUAL for the
workbook to function normally. Am I able to include that in my code?

Thanks in anticipation

Bill Hall

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Installation of "Add-Ins" in code

There's no need to test whether its installed or not. Just set
the Installed property to true. There's no harm if it is already
installed.

Application.AddIns("Analysis ToolPak").Installed = True



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Tom Ogilvy" wrote in message
...
Calculation is an application level setting and it is utilized
before your
code would run, so you can't control that for the opening of
your workbook.

Sub AddinInstall()
With Application.AddIns("Analysis Toolpak - VBA")
If .Installed = False Then
.Installed = True
End If
End With
With Application.AddIns("Analysis Toolpak")
If .Installed = False Then
.Installed = True
End If
End With
End Sub


--
Regards,
Tom Ogilvy



"Bill Hall" wrote in
message
...
When my Excel workbook is opened, I want the Excel code to
check to see if
the Add-Ins "Analysis Toolpack" is already installed on the
user's Excel
application. Because I am using several of the Analysis
Toolpack

functions
in my worksbook, I need the Add-Inns to be installed. If it
isn't

installed,
how do I code Excel to automatically install the "Add-Ins"
when the

workbook
is opened?

Similary, I need the Tools Options Calculation to be on
MANUAL for the
workbook to function normally. Am I able to include that in
my code?

Thanks in anticipation

Bill Hall







  #6   Report Post  
Posted to microsoft.public.excel.programming
ben ben is offline
external usenet poster
 
Posts: 232
Default Installation of "Add-Ins" in code

thanks tom,

I was under the impression calculatioon was a workbook level function.

--
When you lose your mind, you free your life.


"Tom Ogilvy" wrote:

Calculation is an application level setting and it is utilized before your
code would run, so you can't control that for the opening of your workbook.

Sub AddinInstall()
With Application.AddIns("Analysis Toolpak - VBA")
If .Installed = False Then
.Installed = True
End If
End With
With Application.AddIns("Analysis Toolpak")
If .Installed = False Then
.Installed = True
End If
End With
End Sub


--
Regards,
Tom Ogilvy



"Bill Hall" wrote in message
...
When my Excel workbook is opened, I want the Excel code to check to see if
the Add-Ins "Analysis Toolpack" is already installed on the user's Excel
application. Because I am using several of the Analysis Toolpack

functions
in my worksbook, I need the Add-Inns to be installed. If it isn't

installed,
how do I code Excel to automatically install the "Add-Ins" when the

workbook
is opened?

Similary, I need the Tools Options Calculation to be on MANUAL for the
workbook to function normally. Am I able to include that in my code?

Thanks in anticipation

Bill Hall




  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Installation of "Add-Ins" in code

True, but he said he wanted to check.

--
Regards,
Tom Ogilvy

"Chip Pearson" wrote in message
...
There's no need to test whether its installed or not. Just set
the Installed property to true. There's no harm if it is already
installed.

Application.AddIns("Analysis ToolPak").Installed = True



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Tom Ogilvy" wrote in message
...
Calculation is an application level setting and it is utilized
before your
code would run, so you can't control that for the opening of
your workbook.

Sub AddinInstall()
With Application.AddIns("Analysis Toolpak - VBA")
If .Installed = False Then
.Installed = True
End If
End With
With Application.AddIns("Analysis Toolpak")
If .Installed = False Then
.Installed = True
End If
End With
End Sub


--
Regards,
Tom Ogilvy



"Bill Hall" wrote in
message
...
When my Excel workbook is opened, I want the Excel code to
check to see if
the Add-Ins "Analysis Toolpack" is already installed on the
user's Excel
application. Because I am using several of the Analysis
Toolpack

functions
in my worksbook, I need the Add-Inns to be installed. If it
isn't

installed,
how do I code Excel to automatically install the "Add-Ins"
when the

workbook
is opened?

Similary, I need the Tools Options Calculation to be on
MANUAL for the
workbook to function normally. Am I able to include that in
my code?

Thanks in anticipation

Bill Hall







  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Installation of "Add-Ins" in code

thanks Tom, re the calculation: I appreciate what you are saying, but can I
alter calculation to manual ONCE the workbook is opened? This might be OK if
I can - I guess that I wasn't precise enough in my question

Bill

"Tom Ogilvy" wrote:

Calculation is an application level setting and it is utilized before your
code would run, so you can't control that for the opening of your workbook.

Sub AddinInstall()
With Application.AddIns("Analysis Toolpak - VBA")
If .Installed = False Then
.Installed = True
End If
End With
With Application.AddIns("Analysis Toolpak")
If .Installed = False Then
.Installed = True
End If
End With
End Sub


--
Regards,
Tom Ogilvy



"Bill Hall" wrote in message
...
When my Excel workbook is opened, I want the Excel code to check to see if
the Add-Ins "Analysis Toolpack" is already installed on the user's Excel
application. Because I am using several of the Analysis Toolpack

functions
in my worksbook, I need the Add-Inns to be installed. If it isn't

installed,
how do I code Excel to automatically install the "Add-Ins" when the

workbook
is opened?

Similary, I need the Tools Options Calculation to be on MANUAL for the
workbook to function normally. Am I able to include that in my code?

Thanks in anticipation

Bill Hall




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
CHANGE THE RIBBON AFTER THE INSTALLATION OF ADDIN "MOREFUNC" FARAZ QURESHI Excel Discussion (Misc queries) 0 May 19th 09 03:31 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
I am receiving "prepare for installation" message when I try to . Jo Excel Discussion (Misc queries) 0 March 31st 06 06:21 PM
Can you "duplicate" "copy" listboxes and code to multiple cells? HotRod Excel Programming 1 September 1st 04 05:03 PM
Looking for VB code to test for "RING" , "BUSY" disconnects or other signals BruceJ[_2_] Excel Programming 3 November 20th 03 01:55 AM


All times are GMT +1. The time now is 07:24 AM.

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"