Is there a way to assign a macro to a Combo Box (Form Control) automatically, via an Add-In, when the file is opened.
Assuming "Drop Down 1" exists. Tried the following in the Add-In.
![]()
Private Sub Workbook_Open() Sheet1.Shapes("Drop Down 1").OnAction = "C:\Users\me\AppData\Roaming\Microsoft\AddIns\MyAddIn.xlam!Macro1" End Sub
Bookmarks