![]() |
#1
|
|||
|
|||
![]()
Hello guys
I'm trying to Retrieve from 2 Dropdown Elements the Values. And by an certain value ( example "hidden" ) the Content control should be hidden . And These case sould by query independent for both Content controls. So i think i Need 1 certain value for each Content control element. I'm not so familar with the vba things in word ... Edit: So now i found some vba code : Code:
Function getCCValue(cc As ContentControl) Dim ccLE As ContentControlListEntry For Each ccLE In cc.DropdownListEntries If ccLE.Text = cc.Range.Text Then getCCValue = ccLE.Value Exit For End If Next End Function I think these code ther is an Collect from all Values from the Dropdownlist's is it right ? The i Need the Definition by cases for Dropdown list1 and Dropdown list 2. regards John s. Last edited by macropod; 02-21-2014 at 02:09 PM. Reason: Restructured code |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Sammie0Sue | Word VBA | 21 | 01-12-2021 04:44 PM |
![]() |
Sammie0Sue | Word | 6 | 11-06-2013 10:56 PM |
![]() |
jeffaus | Word VBA | 1 | 03-14-2013 11:42 PM |
![]() |
cksm4 | Word VBA | 2 | 03-01-2011 12:46 PM |
Calculations using values from date picker controls | Inkarnate | Word | 0 | 06-09-2010 07:16 AM |