Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-18-2020, 10:48 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,518
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

See also:
Dependent Dropdown Content Controls
Help with cascading dropdown list

Hierarchical Dropdown Content Controls


Creating a reducing drop down list

Dependent Text Content Controls
Multiple entries in dropdown lists
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #2  
Old 02-19-2020, 12:27 PM
sconeill92 sconeill92 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 2016
Novice
Needing to learn dependent drop downs and how to still keep the document editable
 
Join Date: Feb 2020
Posts: 6
sconeill92 is on a distinguished road
Default

Macropod thank you so much! I was able to copy-paste your VBA code from Dependent dropdown CC and just by changing the labels, it worked perfectly!

2 quick questions:

1. In this form I'm updating, I still want the next 2 fields to update but these are much simpler. I want something to the effect of "IF 'Eliquis', THEN '1 by mouth twice a day'' IF 'Orencia', THEN....." How do I do that or add that into the code?

2. Where can I go online to learn more about VBA and how to develop it myself?
Reply With Quote
  #3  
Old 02-19-2020, 02:40 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,518
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

Quote:
Originally Posted by sconeill92 View Post
1. In this form I'm updating, I still want the next 2 fields to update but these are much simpler. I want something to the effect of "IF 'Eliquis', THEN '1 by mouth twice a day'' IF 'Orencia', THEN....." How do I do that or add that into the code?
That suggest you need to incorporate the principles from the 'dependent text' example I provided a link for.
Quote:
Originally Posted by sconeill92 View Post
2. Where can I go online to learn more about VBA and how to develop it myself?
There are many such resources, including code samples on forums such as this. The quality is variable; avoid anything that uses lots of 'Selection', 'ActiveWindow.ActivePane.View.SeekView' and 'ChangeFileOpenDirectory' code, as that usually evidences heavy reliance on the macro recorder.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #4  
Old 02-20-2020, 12:39 PM
sconeill92 sconeill92 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 2016
Novice
Needing to learn dependent drop downs and how to still keep the document editable
 
Join Date: Feb 2020
Posts: 6
sconeill92 is on a distinguished road
Default

Hey Macropod!

Thank you again for all your help! I have one final question for you though if you don't mind!

Here is a copy-paste of the section I've been working on:

Product Information:
Drug: Sprycel
Strength: Choose an item.
Dose: { IF { REF Drug \* MERGEFORMAT } = "Eliquis""1 by mouth twice a day""{ IF {REF Drug \* MERGEFORMAT } = "Orencia""Inject once under the skin once a week"" { IF {REF Drug \* MERGEFORMAT } = "Sprycel""1 by mouth once a day"}""}"" }
Route: {IF {REF Drug \* MERGEFORMAT } = "Eliquis""Orally""{ IF {REF Drug \* MERGEFORMAT } ="Orencia""Subcutaneous""{IF {REF Drug \* MERGEFORMAT } ="Sprycel""Orally"}""}"" }

When I hit alt-F9 both the dose and route disappear and just say "REF". If I select a drug, nothing happens in these fields. Can you advise why? The drug and strength fields are content control that you helped me with previously.

Thank you
Reply With Quote
Reply

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 09:03 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