Re: align text left and align text right: on the same line
- From: "Thirsty_4_knowledge" <Thirsty4knowledge@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 23 Aug 2005 08:05:02 -0700
Jay -
I am trying to do this with VBA. What I really need is to access ONLY the
middle "section" (I know this is not the correct use of my vocab) in the
header and footer. For example, I'm trying to get this done:
##### (TAB) MyString (TAB) ####
Where the pound signs are something anybody can manually enter, the (TAB) is
the seperating tabstop (making the header/footer have a left alligned section
of text, a center alligned section of text, and a right allighned section of
text). MyString is a variable in the VBA code.
Currently, all I can think of is count the total characters in the header,
then divide it by two (hoping that will land me in the middle) and selecting
the word that's associated with that character location, and changing it.
This really is way too buggy, and I know it's not the proper way to do
things! If you know of a way that I can access only the center section of a
header or footer, I'd greatly appreciate it... thanks!
Dereck
"Jay Freedman" wrote:
> On 20 Aug 2005 07:11:24 -0700, kellrobinson@xxxxxxxxxxxx wrote:
>
> >How to do it in MS Word?
>
> Set a right-aligned tab stop at the right margin. After entering the
> left-aligned text, press Tab and then enter the right-aligned text.
>
> The styles named Header and Footer already have the desired tab stop,
> as well as one at the center of the line. You can define your own
> style with a right-aligned tab and apply it wherever you want.
>
> BTW, this question is off-topic in a VBA newsgroup unless you're
> asking how to do it in a macro. It would be more appropriate to post
> it in the microsoft.public.word.pagelayout group.
>
> --
> Regards,
> Jay Freedman
> Microsoft Word MVP FAQ: http://word.mvps.org
>
.
- Follow-Ups:
- Re: align text left and align text right: on the same line
- From: Jay Freedman
- Re: align text left and align text right: on the same line
- References:
- align text left and align text right: on the same line
- From: kellrobinson
- Re: align text left and align text right: on the same line
- From: Jay Freedman
- align text left and align text right: on the same line
- Prev by Date: Macro Paste Special
- Next by Date: Re: CustomDocumentProperties
- Previous by thread: Re: align text left and align text right: on the same line
- Next by thread: Re: align text left and align text right: on the same line
- Index(es):
Relevant Pages
|