programming tabs

R

rocco

Hello,
I work heavily with VBA in Access but I'm quite new programming word. I'm
able to manage range and Bookmark but I usually start from a template were
everything is already settled up.
What i need to know is:
is it possible to style the documents using tabs by code? I need to create
many tabs, each at different point in the document (ie… in the middle of the
page...close to the right edge of the page..and so on).
I mean can I handle Tabs by code? Which object should I use to create and
manipulate them?
I have done a search in the forum…but it seems there are no hints regarding
tabs.

Thanks,
Rocco
 
D

Dave Lett

Hi Rocco,

You can use something like the following to get you started

ActiveDocument.Paragraphs(1).TabStops.Add _
Position:=InchesToPoints(1.5), _
Alignment:=wdAlignTabRight, _
Leader:=wdTabLeaderDots

HTH,
Dave Lett
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top