Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-03-2015, 08:44 AM
rkferguson's Avatar
rkferguson rkferguson is offline Macro to check dropdown value and increment a counter Windows 8 Macro to check dropdown value and increment a counter Office 2007
Novice
Macro to check dropdown value and increment a counter
 
Join Date: Jan 2015
Posts: 5
rkferguson is on a distinguished road
Default Macro to check dropdown value and increment a counter

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
Reply With Quote
 

Tags
bookmarks, word 2003, word vba macro

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dropdown list, Macro shield5 Excel Programming 7 10-27-2013 01:51 AM
Macro to check dropdown value and increment a counter macro not working (on click increment) 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
Macro to check dropdown value and increment a counter Check Box Macro Johnny thunder Word VBA 12 04-07-2011 04:47 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:36 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft