My .xla custom menu items doesn't show up when using 3rd party software
Dim xlApp As Application
Dim mwb As Workbook
Sub testStart()
Dim sName As String
sName = "C:\path\myAddin.xla"
Set xlApp = New Excel.Application
Set mwb = xlApp.Workbooks.Open(sName)
mwb.RunAutoMacros xlAutoOpen
xlApp.Workbooks.Add
xlApp.Visible = True
End Sub
Sub testQuit()
On Error Resume Next
mwb.RunAutoMacros xlAutoClose
Set mwb = Nothing
xlApp.Quit
Set xlApp = Nothing
End Sub
If using Late Binding change xlAutoOpen & xlAutoClose to their respective
constant values of 1 and 2
Regards,
Peter T
"Michael Malinsky" wrote in message
ups.com...
@smw226: I'll give that a try...thanks.
@Ron: Any workaround suggestions other than what was already
suggested?
Thanks.
On Oct 10, 4:45 pm, "Ron de Bruin" wrote:
hi Michael
If you run Excel from another program code in Add-ins will not run
(you see the add-ins checked in ToolsAdd-ins)
Run this in Start Run in Windows with Excel closed and you see it
excel.exe /s
--
Regards Ron de Bruinhttp://www.rondebruin.nl
"Michael Malinsky" wrote in
oglegroups.com...
Long subject line...sorry.
Anyway, I have created an .xla add-in that creates a custom menu item
on the standard menu bar. This works fine when opening Excel.
However, we use a 3rd party application that integrates with Excel
(essentially document management software) that is causing problems.
If I open a workbook through that software, the menu that is supposed
to be created with my add-in does not appear even though the add-in is
checked in the ToolsAdd-ins dialog. If a uncheck and add-in, close
the Add-in dialog, open the Add-in dialog, check my add-in, then close
the Add-in dialog, the menu appears like it should.
I would like to distribute this add-in to everyone at my office, but
this is a sticking point for which I cannot seem to find a solution.
Thanks,
Mike.
|