A
Aaron Fude
Hi,
A few weeks ago a posting of mine contained a request for a script to start
excel, load add-ins and open the wb given by the first agrument to the
script. keepITcool was kind enough to answer with essentially the following:
Dim XL
Dim agrs
Dim ai
on error resume next
set XL = GetObject(,"Excel.Application")
If XL is Nothing Then
Set XL = CreateObject("Excel.Application")
For Each ai In xL.AddIns
If ai.Installed Then
XL.Workbooks.Open(ai.FullName).RunAutoMacros 1
End If
Next
End If
XL.Workbooks.Open WScript.Arguments(0)
XL.Visible = True
---------------------------------------------------
This script causes 2 problems for me:
1. Add-ins are not opened in the order specified by the registry, but rather
alphabetically. Since one of my add-ins depends on the other, this doesn't
work for me.
2. It fails to open the MS addin "MSN Equity Quotes" complaining that it is
the wrong format.
Any way to modify the script to make it work in these cases?
Many thanks in advance.
Aaron Fude
A few weeks ago a posting of mine contained a request for a script to start
excel, load add-ins and open the wb given by the first agrument to the
script. keepITcool was kind enough to answer with essentially the following:
Dim XL
Dim agrs
Dim ai
on error resume next
set XL = GetObject(,"Excel.Application")
If XL is Nothing Then
Set XL = CreateObject("Excel.Application")
For Each ai In xL.AddIns
If ai.Installed Then
XL.Workbooks.Open(ai.FullName).RunAutoMacros 1
End If
Next
End If
XL.Workbooks.Open WScript.Arguments(0)
XL.Visible = True
---------------------------------------------------
This script causes 2 problems for me:
1. Add-ins are not opened in the order specified by the registry, but rather
alphabetically. Since one of my add-ins depends on the other, this doesn't
work for me.
2. It fails to open the MS addin "MSN Equity Quotes" complaining that it is
the wrong format.
Any way to modify the script to make it work in these cases?
Many thanks in advance.
Aaron Fude