Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-22-2015, 01:35 PM
Cosmo Cosmo is offline Variable text field code based on occurrences on each page Windows Vista Variable text field code based on occurrences on each page Office 2007
Competent Performer
Variable text field code based on occurrences on each page
 
Join Date: Mar 2012
Posts: 240
Cosmo is on a distinguished road
Default Variable text field code based on occurrences on each page

I have a document with a specific text which will need to display 2 versions, a longer version the first time it appears on each page, and a shorter version every time it appears thereafter on the same page.

e.g. suppose a company name 'Widgets R Us (a widgetco subsidiary)' and it's shorter version 'Widgets R Us'

I have this working using a macro in another document, but this current document will have an area where the user will edit text in a certain area within the document, and I can't use the macro to cleanup afterwards.

Is there a way to do this (either using field codes or some other device) which will automatically update when the text reflows as the user is editing the text?
Reply With Quote
  #2  
Old 12-22-2015, 08:28 PM
macropod's Avatar
macropod macropod is offline Variable text field code based on occurrences on each page Windows 7 64bit Variable text field code based on occurrences on each page Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

I don't believe what you're after is feasible. Why can't your macro clean up the text afterwards?
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 12-29-2015, 11:54 AM
Cosmo Cosmo is offline Variable text field code based on occurrences on each page Windows Vista Variable text field code based on occurrences on each page Office 2007
Competent Performer
Variable text field code based on occurrences on each page
 
Join Date: Mar 2012
Posts: 240
Cosmo is on a distinguished road
Default

Sorry for the late reply, I've been swamped with work, and the holidays were hectic.

Thanks for the verification; I didn't think there was a way to do this, but if there was, you'd be much more likely to know than I would.

Once the client runs the program from the template we provide them, the resulting documents will be ultimately distributed as a macro-free file to other people to use with the editable areas enabled, so we have no control over the final users.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Variable text field code based on occurrences on each page Making a field with changing text based on mouse click. Evalis Word 1 01-23-2015 11:37 AM
Save Filename based on Text Field madcar86 Word VBA 8 10-19-2014 12:53 AM
Macro to populate a text form field based on dropdown selection koloa Word 0 10-20-2011 11:52 AM
Variable text field code based on occurrences on each page Replace all occurrences of one merge field with plain text blankenthorst Mail Merge 5 07-01-2011 05:18 AM
Variable text field code based on occurrences on each page Selecting merge field based on whether or not text is present amym Mail Merge 1 12-07-2010 05:14 AM

Other Forums: Access Forums

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


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