G
Gary Hillerson
I need to truncate a text string if it does not fit within a certain
width, and i can't use tables in this situation, so i'm using tabs.
I know the width of the tab stop. I can't find how to determine the
width of a text string in Word VBA (2010/2007). There's a TextWidth
function in Access, but apparently not in Word.
Can anyone point me at a way to compute the text width?
And given that, I assume that the way to truncate the text is to
iteratively lop characters off the end until its width fits into the
desired amount of space? Is there a better way?
Thanks in advance for any help,
gary
width, and i can't use tables in this situation, so i'm using tabs.
I know the width of the tab stop. I can't find how to determine the
width of a text string in Word VBA (2010/2007). There's a TextWidth
function in Access, but apparently not in Word.
Can anyone point me at a way to compute the text width?
And given that, I assume that the way to truncate the text is to
iteratively lop characters off the end until its width fits into the
desired amount of space? Is there a better way?
Thanks in advance for any help,
gary