Re: text formatting
- From: "Jay Freedman" <jay.freedman@xxxxxxxxxxx>
- Date: Fri, 29 Aug 2008 17:17:50 -0400
Hi Edward,
Have you ever heard about the difference between fixed-width and
proportional fonts? The trouble you're having is that your document uses
proportional fonts -- different characters have different widths -- so the
width of the text isn't determined just by the number of characters.
The way all word processors get around this is to set a tab stop at the
right end of the line, and insert a tab character between the text and the
number. Further, most of them (including Word) let you format a tab stop
with a "leader" character such as the dots you're trying to insert. So you
just insert a tab character, and the space is automatically filled in with
dots. Read http://www.word.mvps.org/FAQs/Formatting/SettingTabs.htm.
Finally, it looks like you're trying to create an index. Word has a built-in
feature for marking index entries and a field for building an index from
those entries. If that's what you're doing, look in the help file for "How
to make an index".
--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
Edward wrote:
Hi everybody,
Im using the following code to genetare a text formatting
mystr= ' somthing
For x = 1 To 50 - Len(mystr)
mystr = mystr + " " + "."
Next
my problem is for different lenght of mystr even when i use truetype
font the results don't line up correctly
first text .............................1
seocnd long text ................2
altough we have the same number of characters in each line but 1 and
2 don't line up correctly . any suggestions?
Thanks,
.
- References:
- text formatting
- From: Edward
- text formatting
- Prev by Date: Re: Using Office and Windows XP, SP3
- Next by Date: Why won't CustomDocProperties stick to doc after close??!?
- Previous by thread: Re: text formatting
- Next by thread: Why won't CustomDocProperties stick to doc after close??!?
- Index(es):
Relevant Pages
|