#1
|
|||
|
|||
DocVariable formatting and the ability to truncate a string.
I have a document template with several DocVariables. A couple of these fields need to be limited as far as their length so that they don't spill over to the next line.
Is there a way to set the format of my DocVariable so that only a certain number of characters get inserted into the field? Something similar to the "Left" function in Excel? I know I can shorten the length of the data before I update the fields in my document templates, I'm just curious if I can control this with my DocVariables. Thanks. |
#2
|
||||
|
||||
Hi MaxInCO,
Word fields have no string manipulation functions like 'Left' etc. Your only options therefore are: 1. shorten the string 2. use a different font/size 3. allow wrapping (eg within a table cell)
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calculate the coordinates of a DocVariable, Bookmark or paragraph. | MaxInCO | Word VBA | 5 | 12-11-2013 03:28 PM |
Way to search for a string in text file, pull out everything until another string? | omahadivision | Excel Programming | 12 | 11-23-2013 12:10 PM |
Replacing text string within document, it's not retaining formatting | livemusic | Word | 4 | 02-25-2013 12:33 AM |
DOCVARIABLE copy paste special | cyndor | Word | 2 | 04-06-2012 03:57 AM |
Ability to create layouts in word | jade | Word | 2 | 11-18-2009 02:42 AM |