![]() |
|
#1
|
|||
|
|||
|
New challenge guys,
I can't seem to make any of my controls invisible programmatically. I am using the following code, which works to identify the controls and successfully loops through the controls; however, I can't seem to find the ".visible" property. Any help? Code:
Sub ParticipantGuide()
Dim ctl As ContentControl
For Each ctl In ActiveDocument.ContentControls
If ctl.Type = wdContentControlRichText Then
If ctl.Tag = "FacilitatorBlock" Then
ctl.Visible = False
Else
' DO NOTHING
End If
End If
Next
End Sub
Thanks in advance for the creative notions. p.s. I am not set on using these controls. If I need to change to something else, I can do that. Also, the controls are on the document itself, not on a form. |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Loop and Update Content Controls with value | vss712 | Word VBA | 7 | 08-27-2015 08:56 PM |
| VBA for content controls | ciresuark | Word VBA | 1 | 03-10-2015 03:14 PM |
Content Controls
|
Sammie0Sue | Word | 6 | 11-06-2013 10:56 PM |
which controls should i set to make the pasted screen shot fits the boundaries of the
|
Jamal NUMAN | Word | 2 | 06-30-2011 05:40 PM |
Can't Download Controls
|
BillTheAdmin | Project | 2 | 12-05-2005 10:20 AM |