Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Font and Page setup

Status
Not open for further replies.

vnk

IS-IT--Management
Nov 14, 2001
33
0
0
US
Hi Everyone,

Am back again with font & page setup problem .

I have recorded the macro to modify the page setup for whole document and font size(except for tables) and when I tried to use them in the script it was giving an error.
I have included following lines in my script,
(e.g)

With ActiveDocument.PageSetup

.LeftMargin = InchesToPoints(1)
.RightMargin = InchesToPoints(1)

End With


am I missing any thing?
 
What error mesage are you getting ?

The code you posted sets the active document margins, left & right, to one inch.

AC

 
Ac,

When I run the script it gives a pop up message
"Run time error 4608"
Value out of range

When I click the debug button , it points to the
".LeftMargin = InchesToPoints(1)"

- VNK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top