![]() |
#1
|
||||
|
||||
![]()
Looking for a way to build a macro to run "On exit" that checks the value selected in a dropdown, and then increments a counter based on that value. For example, a WORD template has several dropdown boxes and each box has three choices from which to select - A, B, or C.
If the user selects "A", a counter for "A" gets incremented by 1 eg., Cntr_A = Cntr_A + 1. Presuming a need for a variable to identify which dropdown/bookmark the macro is working. That is if the template has 50 dropdown boxes, it would not make sense to write a separate macro for each one. There must be a way to tell the macro which bookmark it is working. Please provide sample code or pointers to code or reference material from which I can glean a method for solving this. I am working with versions of Word ranging from 2003 to 2013. Thanks much, Ferg |
Tags |
bookmarks, word 2003, word vba macro |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dropdown list, Macro | shield5 | Excel Programming | 7 | 10-27-2013 01:51 AM |
![]() |
gsrikanth | Excel Programming | 1 | 07-12-2012 07:40 AM |
Check box macro help needed | Aflac | Word | 4 | 03-24-2012 07:11 PM |
Macro to populate a text form field based on dropdown selection | koloa | Word | 0 | 10-20-2011 11:52 AM |
![]() |
Johnny thunder | Word VBA | 12 | 04-07-2011 04:47 PM |