![]() |
#1
|
|||
|
|||
![]()
Hola! I found a macro on here that works beautifully to clear content control. Only if the repeating content control is removed :S When the repeating content control is added, an error pops up with "Debug" and the aCC.Range.Text = "" is no longer valid.
Wondering, how does one write to add the repeating content control? Any help is greatly appreciated! This is the original code: Dim aCC As ContentControl For Each aCC In ActiveDocument.ContentControls aCC.Range.Select If aCC.Type <> wdContentControlDropdownList Then aCC.Range.Text = "" Else aCC.Type = wdContentControlText aCC.Range.Text = "" aCC.Type = wdContentControlDropdownList End If Next aCC End Sub |
Tags |
command button, macro, word 16 |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
jsc_msoffice | Word VBA | 2 | 05-21-2021 09:51 PM |
![]() |
ashleyf | Word VBA | 2 | 03-19-2020 09:11 AM |
![]() |
NicB | Word | 9 | 07-29-2018 09:46 AM |
Adding Row with Content control using Command Button | baes10 | Word VBA | 0 | 12-13-2017 11:30 AM |
![]() |
BrainSlugs83 | Word Tables | 8 | 11-14-2013 03:06 AM |