Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-21-2021, 03:43 PM
jsc_msoffice jsc_msoffice is offline Change Value of a Content Control based on the value of another content Control Windows 10 Change Value of a Content Control based on the value of another content Control Office 2016
Novice
Change Value of a Content Control based on the value of another content Control
 
Join Date: Nov 2020
Posts: 3
jsc_msoffice is on a distinguished road
Default Change Value of a Content Control based on the value of another content Control

Hello,


I have a word document where I have a content control which is a dropdown list with three names, Adam, Bob and Sam. I am trying to have another content control whose value will be the following
if Adam is selected, 10
If Bob is selected, 20
If Sam is selected, 30

Can anyone let me know how to make that happen?

Thanks in advance
Reply With Quote
  #2  
Old 05-21-2021, 06:00 PM
Guessed's Avatar
Guessed Guessed is offline Change Value of a Content Control based on the value of another content Control Windows 10 Change Value of a Content Control based on the value of another content Control Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,969
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

You don't need a macro for this. Mapped CCs can do it
See https://www.msofficeforums.com/word-...selection.html for the basic principles. There are longer descriptions of how to do it here but I didn't do a big search to find them.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #3  
Old 05-21-2021, 09:51 PM
macropod's Avatar
macropod macropod is offline Change Value of a Content Control based on the value of another content Control Windows 10 Change Value of a Content Control based on the value of another content Control Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

For a VBA solution, see: https://www.msofficeforums.com/word-...html#post46903
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Tags
content control



Similar Threads
Thread Thread Starter Forum Replies Last Post
Change Value of a Content Control based on the value of another content Control Content Control Dropdowns - How to duplicate the content control and allow a second choice ashleyf Word VBA 2 03-19-2020 09:11 AM
Change Value of a Content Control based on the value of another content Control Finding specific Content Control based on both title and tag ZaSpai Word VBA 4 03-31-2019 11:37 AM
Change Value of a Content Control based on the value of another content Control Automating entries based on the entry in a Content Control gsbpxw Word VBA 1 10-22-2018 12:45 PM
Change Value of a Content Control based on the value of another content Control Clicking the selected Content Control checkbox returns wrong control in vba event DougsGraphics Word VBA 2 06-24-2015 07:31 AM
Change Value of a Content Control based on the value of another content Control Deleting a table from a content control -- preserving the content control BrainSlugs83 Word Tables 8 11-14-2013 03:06 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:20 AM.


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