View Single Post
 
Old 02-20-2014, 03:07 AM
john s. john s. is offline Windows 7 64bit Office 2010 64bit
Novice
 
Join Date: Feb 2014
Posts: 1
john s. is on a distinguished road
Default Retrieve Values from Content Controls for hidden

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