![]() |
#4
|
||||
|
||||
![]()
Rather than using the VBA code listed in the "Advanced Custom Mapping" section, you might want to read a little further on and go to the 'Content Control Tools' page and download the addin there.
A simpler alternative would be to use a ContentControlOnExit macro in the 'ThisDocument' code module of either the document or its template, coded along the lines of: Code:
Private Sub Document_ContentControlOnExit(ByVal CCtrl As ContentControl, Cancel As Boolean) If CCtrl.Title <> "Parent" Then Exit Sub With CCtrl If .ShowingPlaceholderText = False Then ActiveDocument.SelectContentControlsByTitle("Child")(1).Range.Text = .Range.Text Else ActiveDocument.SelectContentControlsByTitle("Child")(1).Range.Text = "XXXX" End If End With End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
Tags |
pdf export |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
brent chadwick | Word VBA | 10 | 10-25-2017 08:26 AM |
How to save the current page in a new file with all the page settings (header, footer | Jamal NUMAN | Word | 6 | 03-15-2012 03:27 PM |
![]() |
KIM SOLIS | Excel | 2 | 11-04-2011 06:09 PM |
![]() |
jabberwocky12 | Word VBA | 2 | 10-22-2010 12:23 PM |
![]() |
Styler001 | Word | 4 | 01-25-2010 06:40 PM |