Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 08-12-2022, 07:38 AM
DMSI DMSI is offline Add content control to all words from an Excel list in a Word document Windows 10 Add content control to all words from an Excel list in a Word document Office 2016
Novice
Add content control to all words from an Excel list in a Word document
 
Join Date: Aug 2022
Posts: 4
DMSI is on a distinguished road
Default

Hi thanks for responding.

So what we are looking to do is scan through a document and any time the specified word in the excel is found it would add a content control box to it, we are using the content control as a way to replace variables in our docs.

I have to use dummy text as I don't think it would be appropriate for me to upload our actual content.

Example excel list:
In Column A
[object1]
[object2]
[object3]
[object4]
[object5]

Dummy text from one page of the word doc:

● Lorem ipsum dolor sit amet, sit ex conceptam constituto. Ea nec omittam partiendo. Nisl [object1]-pertinax et mea, virtute aliquam ad mei. In per assum iudicabit, sea in eros movet, ex postulant [object2] vel. At altera tritani laoreet vim, has malorum accommodare et. [object3] docendi imperdiet at his. Duo inani nullam [object3] et, ad cum soluta utroque [object5], viris graece inciderint qui te.

So let's say [object1] is found in the text above it would apply a content control to it and move on, so I think it would have to pass a variable to the ReplaceTags or ReplaceAllTags. I am just not sure how to scan an excel list and pass it through. Any guidance would be appreciated, I'll keep trying and hunting in the mean time and post any updates I have.

So I can't upload anything off my current network but I can create a sample and upload later today or tomorrow.

I was trying to work of this previous post:
https://www.msofficeforums.com/word-...ord-excel.html

But I think it is solving a different scenario.

thanks
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Import list from Excel into drop-down content control in word shanshan89 Word VBA 10 08-11-2022 11:53 PM
Populate Word content control fields with data from Excel Kapluke Word VBA 8 01-10-2022 05:39 AM
Add content control to all words from an Excel list in a Word document Push Word content control data and excel cells shaztastic Word VBA 13 08-27-2018 06:46 AM
Combo Box Content Control: How to update the list throughout the whole document? deepak_fer Word 9 03-18-2018 04:10 AM
Word 2010 Content Control help - Combo Boxes vs Drop Down List proghy Word 1 09-16-2014 02:01 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:28 PM.


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