Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default addins dont load when launched by access

I have an addin that is installed. if i select addins it is in the list and
checked. if i open any excel document i have access to the menubar and
macros. if i launch a file from access the addin does not load. is there
something i can do differently? why would i have to specifically load the
addin in code if it is already running in excel? how can i fix this? thanks.

Dim A As Object
Set A = CreateObject("excel.application")
With A.Application
A.Visible = True
A.workbooks.Open "C:\Documents and Settings\Daniel
Motsinger\Desktop\work\File Imports\test1.xls"

A.Run "messagebox"
A.workbooks.Close
End With


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default addins dont load when launched by access

If you start Excel with automation installed addins don't load. You can
load most of them like this (not xll's like ATP)

On Error Resume Next
For Each ad In xlApp.AddIns
If ad.Installed Then
Err.Clear
Set wb = xlApp.Workbooks.Open(ad.FullName)
If Err.Number = 0 Then wb.RunAutoMacros 1 'xlAutoOpen
End If
Next

Regards,
Peter T

"Daniel M" wrote in message
...
I have an addin that is installed. if i select addins it is in the list

and
checked. if i open any excel document i have access to the menubar and
macros. if i launch a file from access the addin does not load. is there
something i can do differently? why would i have to specifically load the
addin in code if it is already running in excel? how can i fix this?

thanks.

Dim A As Object
Set A = CreateObject("excel.application")
With A.Application
A.Visible = True
A.workbooks.Open "C:\Documents and Settings\Daniel
Motsinger\Desktop\work\File Imports\test1.xls"

A.Run "messagebox"
A.workbooks.Close
End With




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 Version 2007 - AddIns load individually dplunkett Excel Discussion (Misc queries) 1 May 9th 09 07:36 AM
Changing the order the addins load havenlad Excel Discussion (Misc queries) 2 June 16th 07 12:13 AM
how to load addins in Excel ccharles Excel Discussion (Misc queries) 1 April 14th 05 01:53 AM
Load On Demand Addins Vikram Kohli[_2_] Excel Programming 8 May 4th 04 07:57 AM
As Addins load question Stuart[_5_] Excel Programming 4 July 12th 03 09:22 PM


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