Search found 2 matches

by Jonjozz
Sat Aug 02, 2014 8:31 pm
Forum: General Support & Discussions
Topic: [SUGGESTION] If TAG exists
Replies: 6
Views: 3371

Re: [SUGGESTION] If TAG exists

or then Dim CC As ContentControls ' Get the collection of all content controls with this tag. Set CC = ActiveDocument.SelectContentControlsByTag("Thing") ' If any content controls are found iterate through them and give the type. If CC.Count = 0 Then ‘ The content control tagged "Thing" doesn´t exis...
by Jonjozz
Sat Aug 02, 2014 8:18 pm
Forum: General Support & Discussions
Topic: [SUGGESTION] If TAG exists
Replies: 6
Views: 3371

Re: [SUGGESTION] If TAG exists

Use ActiveDocument.SelectContentControlsByTag("XXXX").Count if ActiveDocument.SelectContentControlsByTag("XXXX").Count = 0 (There is no Content Control tagged "XXXX") if ActiveDocument.SelectContentControlsByTag("XXXX").Count = 1 (There is only one Content Control tagged "XXXX") if ActiveDocument.Se...