textColumns

M

Mona

greetings.

i need to copy the following values of the active document to a new
document. Can someone help me with this?


With Selection.PageSetup.TextColumns
.SetCount NumColumns:=1
.EvenlySpaced = True
.LineBetween = False
.Width = InchesToPoints(3.46)
.Spacing = InchesToPoints(0.5)
End With

thanks,
mona
 
S

StevenM

To: Mona,

Of course, it depends on what you are trying to accomplish.

Dim newDoc As Document
Set newDoc = Documents.Add
newDoc.PageSetup.TextColumns.Add _
Width:=InchesToPoints(3.46), _
Spacing:=InchesToPoints(0.5)

One cannot have both "EvenlySpaced:=True & Width:=InchesToPoints(3.46)

What this above code does is to create a second column with a width of 3.46"
and spacing between the first and second column of 0.5". The width of the
first column is the width of the page minus the left and right margins, the
width of the second column, and the width of the space between the columns.

Steven Craig Miller
 

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

Similar Threads

TOC problem 0
TOC Help 0
TOC Problem 0
Macro to fix header 0
Word macro that can call cells out of Excel for a find and replace 0
Table of Content 1
VBA - (re-) Set a Table Style 2
Text Overflow 4

Top