Styles for columns

V

Vikki

Using Word compatible 97-2003 in Word 2007 (I do technical writing and
editing for people who don't use 2007 yet)

Is there a way to incorporate columns into a style? And then make a macro to
apply that style to a body of text?

I have a defined body text style that I want always be two columns with a .2
space between them. I would like this to be defined in the style without a
having to choose the style and then format the columns. The style is defined,
just can't figure out how to incorporate the columns.

I know very little about macros or how to write them.

Thanks in advance for help!

Vikki
 
D

Doug Robbins - Word MVP

Text Columns are a Section property, and Styles only apply to Paragraphs and
Characters, so it is not possible to incorporate the setting up of columns
into a Style.

The following code in a macro will however set up columns that way that you
have mentioned:

With Selection.Sections(1).PageSetup.TextColumns
.SetCount NumColumns:=2
.EvenlySpaced = True
.Spacing = InchesToPoints(0.2)
.LineBetween = False
End With

See the article "What do I do with macros sent to me by other newsgroup
readers to help me out?" at:

http://www.word.mvps.org/FAQs/MacrosVBA/CreateAMacro.htm


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

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