How to open the COM Add-ins dialog window using CommandBars object Execute method?

m1chael

New Member
Joined
Nov 12, 2013
Messages
16
The following line of code opens the Excel Add-ins dialog window (also accessed via ALT-L H):


Application.CommandBars(1).FindControl(ID:=943, Recursive:=True).Execute


Can you please advise a similar line of code which would instead open the COM Add-ins dialog window (also accessed via ALT-L J)?


Please do not suggest SendKeys as this will not work as an alternative solution as the code needs to work when Windows is locked and SendKeys does not work when Windows is locked.


(Note: The ALT keyboard shortcuts above are only given so I can easily explain and identify which dialog box I'm trying to show. Also, note that the ALT-L keyboard shortcut only works if the Develop tab is visible on the ribbon.)
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Have you tried this :
Code:
Application.CommandBars.ExecuteMso "ComAddInsDialog"
 
Upvote 0

Forum statistics

Threads
1,223,162
Messages
6,170,431
Members
452,326
Latest member
johnshaji

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top