Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Automate the Tools...Reference ?

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\Scopi ngTool_Addin.xlam",
CopyFile:=False)
Application.AddIns("ScopingTool_Addin").Installed = True

End Sub

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Automate the Tools...Reference ?

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\Scopi ngTool_Addin.xlam",
CopyFile:=False)
Application.AddIns("ScopingTool_Addin").Installed = True

End Sub

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
Where did ToolsReference go? Kim Excel Programming 1 December 16th 07 06:12 PM
VBE ToolsReference question Ludo Excel Programming 5 October 6th 07 05:57 PM
Same Office 2003 but different VBA ToolsReference (object ref.) Edmund Excel Programming 5 August 17th 07 02:23 AM
Microsoft.Office.Tools reference Dev Excel Programming 0 June 7th 06 07:37 PM
VBA: Tools - Reference CinqueTerra Excel Programming 1 April 28th 06 04:05 PM


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