![]() |
#1
|
|||
|
|||
![]()
I'm trying to:
• copy text from a table cell • to another cell on another page, • after the user completes typing text into the first cell. I can't figure out how to set up an event listener to determine when the text in the 1st cell has changed, or even if that's feasible in Word 2013+. Can I do this? If so, how? |
#2
|
||||
|
||||
![]()
I think the best solution would be to place a content control in the table cell and use a ContentControl OnExit macro.
But if you are simply to trying to replicate the same content in two places, you don't even need a macro if you are using Content Controls mapped to the same xml data. See http://gregmaxey.com/word_tip_pages/..._controls.html
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#3
|
|||
|
|||
![]()
Guessed:
Thanks for your help but . . . I did learn how to map the 2 controls but it's acting erratically. I created an xml doc: Code:
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <AddressXMLNode xmlns="Inspectagator Client Address"> <Address></Address> </AddressXMLNode> Each is in a separate table BUT The first cell is Align Left, the second one is Align Center. Every time I change one, the other is changed too. I can't make it keep the text to the left in the 1st control & in the center on the 2nd control. I need the user to be able to enter the address (RTF) into the first at the top of the document and that text is automatically entered into the second cell at the bottom of the doc. BUT - without changing the formatting (namely the alignment). Is there a way to do this? |
#4
|
|||
|
|||
![]()
Try the InstaMap feature of my CC Tools Add-in. Just give the CCs the same title and use the option to link like titled controls.
Left align the top CC and center align the bottom one http://gregmaxey.com/word_tip_pages/...rol_tools.html |
#5
|
||||
|
||||
![]()
I think if the CCs are Rich Text CCs then the formatting of individual paragraphs is contained in the xml and therefore you can't format the contents differently in the two instances.
Instead, you will need to map the xml to a pair of Plain Text Content Controls and ensure both allow carriage returns. You can then style the two instances differently. The 'carriage returns' actually become line breaks (aka soft returns) so you can't apply different styles to different paragraphs within the CC.
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#6
|
|||
|
|||
![]()
True. What I was suggesting was placing the CCs in a left and centered aligned table cell.
|
#7
|
|||
|
|||
![]()
Thanks for your replies.
I haven't tried your suggestions yet. The CCs are in left & center aligned table cells. Word apparently realigns the 2nd one when text is put into the 1st one. |
#8
|
|||
|
|||
![]()
If you want to send me the document I will have a look. Just sent website feedback and then attach after I reply.
|
#10
|
|||
|
|||
![]()
The plain text controls seem to have worked.
I'm not sure what 'plain text' means in Word but I'm hoping the control text is taking on the styling of the cell it's in. Thanks for your help. |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
stubbo66 | Visio | 2 | 08-24-2016 05:58 PM |
![]() |
DroopyRise | Word | 1 | 07-03-2016 04:19 PM |
Mac 2016 - convert text to image? | puffin | PowerPoint | 0 | 05-26-2016 02:46 PM |
Word 2016 mac text not colouring propperly | GAMIE64 | Word | 1 | 04-29-2016 06:18 AM |
2016 Word show text boundaries | Kochanski | Word | 1 | 09-30-2015 07:16 AM |