![]() |
#6
|
||||
|
||||
![]()
The macro for that could be coded as:
Code:
Private Sub Document_New() Application.ScreenUpdating = False Dim sngWdth As Single, StrIn As String StrIn = InputBox("Please specify a margin width, in decimal inches", "Margin Setup", "1.00") If IsNumeric(StrIn) Then sngWdth = InchesToPoints(CSng(StrIn)) Else Exit Sub End If With ActiveDocument.PageSetup .LeftMargin = sngWdth .RightMargin = sngWdth .TopMargin = sngWdth .BottomMargin = sngWdth End With Application.ScreenUpdating = True End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Reuven | Word | 1 | 12-03-2015 04:25 PM |
![]() |
Spassapparat | Word | 5 | 06-18-2013 08:02 AM |
![]() |
Chawton1810 | Word | 1 | 05-20-2012 07:26 PM |
![]() |
APohlmeyer | Word | 1 | 12-21-2011 04:06 PM |
top margin - different first page | beanz | Word | 0 | 06-28-2006 06:32 AM |