View Single Post
 
Old 10-24-2023, 12:59 AM
Italophile Italophile is offline Windows 11 Office 2021
Expert
 
Join Date: Mar 2022
Posts: 554
Italophile is just really niceItalophile is just really niceItalophile is just really niceItalophile is just really nice
Default

Sorry, I had overlooked that you had used "ThisDocument" to set the object variable. "ThisDocument" refers to the document, or template, that contains the code. Change:
Code:
ThisDocument.SelectContentControlsByTitle("PersonalNumber")(1)
To:
Code:
ActiveDocument.SelectContentControlsByTitle("PersonalNumber")(1)
Reply With Quote