Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-18-2013, 10:18 AM
MaxInCO MaxInCO is offline DocVariable formatting and the ability to truncate a string. Windows 7 64bit DocVariable formatting and the ability to truncate a string. Office 2010 64bit
Novice
DocVariable formatting and the ability to truncate a string.
 
Join Date: Dec 2013
Location: Denver
Posts: 9
MaxInCO is on a distinguished road
Default 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.
Reply With Quote
  #2  
Old 12-18-2013, 05:35 PM
macropod's Avatar
macropod macropod is offline DocVariable formatting and the ability to truncate a string. Windows 7 32bit DocVariable formatting and the ability to truncate a string. Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
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

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]
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
DocVariable formatting and the ability to truncate a string. Calculate the coordinates of a DocVariable, Bookmark or paragraph. MaxInCO Word VBA 5 12-11-2013 03:28 PM
DocVariable formatting and the ability to truncate a string. 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 formatting and the ability to truncate a string. DOCVARIABLE copy paste special cyndor Word 2 04-06-2012 03:57 AM
DocVariable formatting and the ability to truncate a string. Ability to create layouts in word jade Word 2 11-18-2009 02:42 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:10 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