Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #8  
Old 02-20-2020, 02:56 PM
macropod's Avatar
macropod macropod is offline Needing to learn dependent drop downs and how to still keep the document editable Windows 7 64bit Needing to learn dependent drop downs and how to still keep the document editable Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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

Firstly, there is no need to use field coding for this - the VBA code in:
Dependent Text Content Controls
Multiple entries in dropdown lists
shows how to make those updates directly from the relevant content control.

Second, your use of fields means you'd have to add additional code to the ContentControlOnExit macro to get them to update.

Third, even if field coding were used, you don't need the \* MERGEFORMAT switches.

Fourth, in a document accessible for editing, there's a very real risk of someone overtyping/deleting the field coding; a content control, by comparison, can be protected against both.

Finally, as you why you're getting that particular error, that may be because you've typed some of the braces instead of creating them via Ctrl-F9 or via Insert|Cross-reference. There should also be a space between your "" sets.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 

Tags
content control, dependent dropdown list, vba



Similar Threads
Thread Thread Starter Forum Replies Last Post
Needing to learn dependent drop downs and how to still keep the document editable Help with Colour Coding drop downs. Instructionalhelp Word VBA 11 03-15-2018 10:35 PM
Needing to learn dependent drop downs and how to still keep the document editable Lock specific drop downs on a Word Document icarrus Word 1 09-30-2015 02:07 PM
Drop Downs Suray1911 Excel 1 09-29-2015 10:31 PM
Needing to learn dependent drop downs and how to still keep the document editable field shading for drop downs rbd50 Mail Merge 3 03-31-2015 09:52 PM
Needing to learn dependent drop downs and how to still keep the document editable Drop-Downs: Run Macro on Exit Andrew H Word VBA 15 11-16-2012 08:34 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:13 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