View Single Post
 
Old 02-26-2018, 05:05 PM
smaccharoli smaccharoli is offline Windows 10 Office 2016
Novice
 
Join Date: Feb 2018
Posts: 2
smaccharoli is on a distinguished road
Default insert the 2 content controls into a Repeating Section in a table

I'm trying to do the same as what is referenced in the below similar post link. However, I'm looking to insert the 2 content controls (dropdown and rich text) into a Repeating Section in a table. Using the example shown by Paul in his comment, I need my end users to be able to enter multiple "Clients" that will auto-populate the Rich Text Content Control.

I thought maybe if I replaced: ActiveDocument.ContentControls(2).Range.Text = StrDetails with: ActiveDocument.SelectContentControlsByTitle("Descr iption").Item(1).Range.Text = StrDetails.

I'm still off a little somewhere though, and not sure where. It is working as such that whenever I add a new section to the table, whatever I select in my primary DropDown control, the Value info gets populated in the Description Rich Text Content Control for the FIRST entry in my repeating section table.

Not sure how to modify the script so that each new entry is independent of the one prior. I have attached my .dotm so can see what I'm doing/not doing properly.

Any thoughts would be greatly appreciated!!

- Steve Maccharoli

Edit mod : post related to https://www.msofficeforums.com/word-...n-lists-6.html
Attached Files
File Type: dotm Template Test.dotm (59.9 KB, 22 views)

Last edited by smaccharoli; 02-27-2018 at 08:58 AM.
Reply With Quote