View Single Post
 
Old 01-14-2022, 01:02 AM
gsfousteris gsfousteris is offline Windows 10 Office 2019
Novice
 
Join Date: Dec 2021
Posts: 5
gsfousteris is on a distinguished road
Default

Quote:
Originally Posted by gmayor View Post
The code references are to lower case so
Code:
Case Is = "ComSystem"
is never going to be true

Use instead
Code:
Case Is = "comsystem"
Similarly
Code:
If InStr(1, LCase(ContentControl.Range.Text), "test") > 0 Then
There doesn't appear to be a content control titled "BVW" in the document?
Yeeeees! You really rock and thanks for your valuable assistance. It worked perfectly.

One last question, as the "comsystem" value comes from an automated script and there is no manual intervention to word document, i see that unless i press anywhere in the doc, content control checkboxes are not updated.
Is there any suggestion, to be updated while "Save as" or "Export" are automatically hitted?
Reply With Quote