PDA

View Full Version : Word 2010 - VBA code to runmacro on dropdown selections



cassandraa
07-30-2014, 09:32 AM
Hello, I have read many forums regarding how to run a macro in Excel when a dropdown selection is made. However, for the life of me I cannot figure out how to have a macro run when an item is selected in a dropdown list in Word. I have managed to create the dropdown list and the macros but cannot figure out how to link the macros to the dropdown selections. Could someone show me the VBA code to link two different macros to two different dropdown selections. (The macros have to run once the user has selected an option in the dropdown menu)

Thanks in advance for your help.

Cassy

macropod
07-30-2014, 02:34 PM
What kind of dropdowns are you using (e.g. useform comboboxes or listboxes, formfield dropdowns, ActiveX dropdowns or content control dropdowns)? And what is your code? Note also that formfield dropdowns and content control dropdowns require the user to exit the dropdown before the macro will fire.