![]() |
#6
|
||||
|
||||
![]() Quote:
• map those content controls; or • use VBA code to loop through your "Seats " collection. For example, using the approach in that link: Code:
Private Sub Document_ContentControlOnExit(ByVal ContentControl As ContentControl, Cancel As Boolean) Dim i As Long, Seats As String With ContentControl If .Title = "Room" Then For i = 1 To .DropdownListEntries.Count If .DropdownListEntries(i).Text = .Range.Text Then Seats = .DropdownListEntries(i).Value Exit For End If Next With ActiveDocument.SelectContentControlsByTag("Seats ") For i = 1 To .Count .Item(i).Range.Text = Seats Next End With End If End With End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
silverspr | Word VBA | 9 | 09-30-2020 07:53 AM |
![]() |
matthias92701 | Word VBA | 2 | 05-02-2019 03:54 PM |
Content Control DropDown List | gabster | Word VBA | 4 | 04-30-2019 09:53 PM |
![]() |
hrzagi | Word | 1 | 12-17-2017 09:38 PM |
![]() |
asteinroeder | Word VBA | 5 | 10-28-2015 03:56 PM |