Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #12  
Old 10-24-2023, 12:59 AM
Italophile Italophile is online now Windows 11 Office 2021
Expert
 
Join Date: Mar 2022
Posts: 563
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
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
outlook löscht beim Abruf gemeinsamer imap Emalemail auf dem server kleinermax Outlook 0 12-20-2019 04:26 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:44 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft