Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Set an Add-In to This Workbook module

I want to make sure that anyone who runs a report will have an Add-in
set to True on their computer before they start.
I tried putting this line in the This Workbook module, but nothing
happens.

Sub AddInsSet()
AddIns.Add("Analysis ToolPak").Installed = True
End Sub

Any suggestions??
Thanks
jeff
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Set an Add-In to This Workbook module

Just because the procedure is behind ThisWorkbook doesn't mean that it'll run
automatically.

The workbook_open event is the built-in event that you wnat to use:

Option Explicit
Private Sub Workbook_Open()
AddIns("Analysis ToolPak").Installed = True
End Sub

wrote:

I want to make sure that anyone who runs a report will have an Add-in
set to True on their computer before they start.
I tried putting this line in the This Workbook module, but nothing
happens.

Sub AddInsSet()
AddIns.Add("Analysis ToolPak").Installed = True
End Sub

Any suggestions??
Thanks
jeff


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Set an Add-In to This Workbook module

On Jun 26, 7:34*am, Dave Peterson wrote:
Just because the procedure is behind ThisWorkbook doesn't mean that it'll run
automatically.

The workbook_open event is the built-in event that you wnat to use:

Option Explicit
Private Sub Workbook_Open()
* *AddIns("Analysis ToolPak").Installed = True
End Sub

wrote:

I want to make sure that anyone who runs a report will have an Add-in
set to True on their computer before they start.
I tried putting this line in the This Workbook module, but nothing
happens.


Sub AddInsSet()
AddIns.Add("Analysis ToolPak").Installed = True
End Sub


Any suggestions??
Thanks
jeff


--

Dave Peterson


Thanks Dave. I screwed up. I didn't put this in the Workbook_Open
section.
It works fine now. Thanks for the reply. I appreciate it.
jeff
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
move module from a workbook to new workbook via VBA Stefi Excel Programming 2 March 22nd 07 11:17 AM
run module in another workbook geebee Excel Programming 1 October 25th 06 11:18 AM
Run worksheet module code from workbook module? keithb Excel Programming 1 August 14th 05 04:04 AM
Automatically Delete WorkBook 2 modules by using Workbook 1 module ddiicc Excel Programming 5 July 27th 05 12:53 PM
Copy VBA Module and Form from Workbook to another workbook topaiva Excel Programming 1 November 25th 04 03:47 PM


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