Is there a way to assign a macro to a Combo Box (Form Control) using VBA, rather than right-clicking in Excel and selecting "Assign Macro"?
Is there a way to assign a macro to a Combo Box (Form Control) using VBA, rather than right-clicking in Excel and selecting "Assign Macro"?
Use the OnAction property.
example where subroutine Test is assigned to combobox.
Please Login or Register to view this content.
Appreciate the response. It works as intended.
Is it possible to assign the macro from an Add-In?
I tried sheet1.Shapes("Drop Down 1").OnAction ="MyAddIn.xlam!Test" but it did not wok.
Does the folder directory of the Add-In have to be specified? The reason is that I use 2 computers.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks