PC Review


Reply
Thread Tools Rate Thread

Automate the Tools...Reference ?

 
 
chemicals
Guest
Posts: n/a
 
      6th Nov 2008
I have created an Add-in and successfully used it in one workbook.
Now I am trying to write some code to automatically get the xla file from
the network, add it to the Excel Addins - which I can do. Apparently to
actually have each new Workbook recognize and use it however, I also need to
MANUALLY go into Tools...References and check it.

How can I do this in VBA code so the user doesn't have to?

Here is what I use to get it to show up as an add-in:

Private Sub Workbook_Open()

'Application.AddIns("ScopingTool_Addin").Installed = False
Set myAddIn =
Application.AddIns.Add(Filename:="H:\Current\ScopingTool_Addin.xlam",
CopyFile:=False)
Application.AddIns("ScopingTool_Addin").Installed = True

End Sub

 
Reply With Quote
 
 
 
 
Gary''s Student
Guest
Posts: n/a
 
      6th Nov 2008
I asked a similar question:

http://groups.google.com/group/micro...8d859c231fb626


--
Gary''s Student - gsnu200812


"chemicals" wrote:

> I have created an Add-in and successfully used it in one workbook.
> Now I am trying to write some code to automatically get the xla file from
> the network, add it to the Excel Addins - which I can do. Apparently to
> actually have each new Workbook recognize and use it however, I also need to
> MANUALLY go into Tools...References and check it.
>
> How can I do this in VBA code so the user doesn't have to?
>
> Here is what I use to get it to show up as an add-in:
>
> Private Sub Workbook_Open()
>
> 'Application.AddIns("ScopingTool_Addin").Installed = False
> Set myAddIn =
> Application.AddIns.Add(Filename:="H:\Current\ScopingTool_Addin.xlam",
> CopyFile:=False)
> Application.AddIns("ScopingTool_Addin").Installed = True
>
> End Sub
>

 
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
Automate resetting reference to object library OssieMac Microsoft Access VBA Modules 4 17th Aug 2009 05:01 PM
: I want to automate the Tools | Options | Mail Format to set the default signature from VBA =?iso-8859-1?q?Thor_=D8stergaard?= Microsoft Outlook VBA Programming 2 23rd May 2006 08:54 PM
Tools to Automate importing/exporting objects? =?Utf-8?B?RGViYmll?= Microsoft Access External Data 3 20th Apr 2006 06:24 PM
Automate selection of specific reference cells =?Utf-8?B?bmpn?= Microsoft Excel Misc 0 26th Feb 2006 04:48 AM
Script to automate the install of Management and Monitoring Tools =?Utf-8?B?ZG1jZG9uYWxk?= Windows XP General 2 18th Feb 2006 05:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:22 AM.