PC Review


Reply
Thread Tools Rate Thread

addins dont load when launched by access

 
 
Daniel M
Guest
Posts: n/a
 
      30th Nov 2007
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 With Quote
 
 
 
 
Peter T
Guest
Posts: n/a
 
      30th Nov 2007
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" <(E-Mail Removed)> wrote in message
news:3DE075B1-C0F1-4353-8DFA-(E-Mail Removed)...
> 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 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
Load Behaviour of Addins booleanlogic Microsoft Excel Programming 1 5th Mar 2009 02:46 PM
Can't load Addins Peter Mac Microsoft Powerpoint 18 12th Jan 2009 11:18 AM
When do AddIns load? Maury Markowitz Microsoft Excel Programming 1 19th Sep 2008 04:35 PM
launching excel from access doesnt load addins Daniel M Microsoft Access VBA Modules 7 30th Nov 2007 03:35 AM
As Addins load question Stuart Microsoft Excel Programming 4 12th Jul 2003 09:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:03 AM.