Discussion:
Border error message regarding pt size
(too old to reply)
Laura Kay
2007-06-05 19:38:10 UTC
Permalink
I'm trying to format borders in a table and the error messge "The measurement
must be between 1 pt and 31 pt" appears.

I've changed the pt size to 1 pt but it doesn't help. It's only in this one
document. If I cut and paste to a new document the borders function works
fine. Unfortunately, it's a huge document and I can't copy the whole thing
to a new document. Anyone have experience or a solution with this?
Suzanne S. Barnhill
2007-06-05 20:15:34 UTC
Permalink
The error message is referring not to the border weight but the "Distance
from text."
--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
Post by Laura Kay
I'm trying to format borders in a table and the error messge "The measurement
must be between 1 pt and 31 pt" appears.
I've changed the pt size to 1 pt but it doesn't help. It's only in this one
document. If I cut and paste to a new document the borders function works
fine. Unfortunately, it's a huge document and I can't copy the whole thing
to a new document. Anyone have experience or a solution with this?
Jay Freedman
2007-06-05 20:29:35 UTC
Permalink
It isn't complaining about the width of the border. Somehow you've gotten a
bad setting for a page border.

In the Format > Borders and Shading dialog, go to the Page Border tab and
click the Options button at the lower right. Each of the four boxes in the
Margins group must be set to a number between 1 and 31 pt. (If this is set
wrong, it doesn't matter that the Page Border itself is set to None.)
--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
Post by Laura Kay
I'm trying to format borders in a table and the error messge "The
measurement must be between 1 pt and 31 pt" appears.
I've changed the pt size to 1 pt but it doesn't help. It's only in
this one document. If I cut and paste to a new document the borders
function works fine. Unfortunately, it's a huge document and I can't
copy the whole thing to a new document. Anyone have experience or a
solution with this?
Laura Kay
2007-06-11 17:49:02 UTC
Permalink
Thank you Jay. Your answer was specific and much appreciated!
--
-Laura
Post by Jay Freedman
It isn't complaining about the width of the border. Somehow you've gotten a
bad setting for a page border.
In the Format > Borders and Shading dialog, go to the Page Border tab and
click the Options button at the lower right. Each of the four boxes in the
Margins group must be set to a number between 1 and 31 pt. (If this is set
wrong, it doesn't matter that the Page Border itself is set to None.)
--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
Post by Laura Kay
I'm trying to format borders in a table and the error messge "The
measurement must be between 1 pt and 31 pt" appears.
I've changed the pt size to 1 pt but it doesn't help. It's only in
this one document. If I cut and paste to a new document the borders
function works fine. Unfortunately, it's a huge document and I can't
copy the whole thing to a new document. Anyone have experience or a
solution with this?
unknown
2008-05-09 22:28:08 UTC
Permalink
Hi Jay, I am having the same error, however the error occurs when you try to get into the 'page borders' tab, and Word won't let me enter the tab to change the settings. Any idea on how to get around this? Thanks, Dave
Chris dP
2008-06-30 23:39:01 UTC
Permalink
Hi Dave, I have the same problem. Did you get a response? Thanks Chris
Post by unknown
Hi Jay, I am having the same error, however the error occurs when you try to get into the 'page borders' tab, and Word won't let me enter the tab to change the settings. Any idea on how to get around this? Thanks, Dave
Rutabaga
2009-10-22 14:50:01 UTC
Permalink
Howdy,

My problem may be the same as others' in here. I had a light gray border
going down the entire length of my Word doc, but when I tried to get to the
Page Border tab in Borders and Shading, I was always confronted with the
message "the measurement must be between 1 pt and 31 pt". The only choice I
had was to close the Borders and Shading box without making any changes.

I was able to access the Page Border tab by choosing Format > Reveal
Formatting, expanding the Section formatting, then clicking Borders.
HOWEVER...

When I selected None in the Borders and Shading window, I still got the
"measurement must be between 1 and 31" message. To resolve this, I went to
the Art pulldown list and selected the apples to apply to the whole document,
then pressed OK. This gave me a border of apples around the whole doc, but I
was then able to re-open the Borders and Shading window and choose None
without any error messages.
Post by Chris dP
Hi Dave, I have the same problem. Did you get a response? Thanks Chris
Post by unknown
Hi Jay, I am having the same error, however the error occurs when you try to get into the 'page borders' tab, and Word won't let me enter the tab to change the settings. Any idea on how to get around this? Thanks, Dave
Larry Dees
2009-08-04 12:02:01 UTC
Permalink
I am having the same error, however the error occurs when you try to get into
the 'page borders' tab, and Word won't let me enter the tab to change the
settings. Any idea on how to get around this?
Post by Jay Freedman
It isn't complaining about the width of the border. Somehow you've gotten a
bad setting for a page border.
In the Format > Borders and Shading dialog, go to the Page Border tab and
click the Options button at the lower right. Each of the four boxes in the
Margins group must be set to a number between 1 and 31 pt. (If this is set
wrong, it doesn't matter that the Page Border itself is set to None.)
--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
Post by Laura Kay
I'm trying to format borders in a table and the error messge "The
measurement must be between 1 pt and 31 pt" appears.
I've changed the pt size to 1 pt but it doesn't help. It's only in
this one document. If I cut and paste to a new document the borders
function works fine. Unfortunately, it's a huge document and I can't
copy the whole thing to a new document. Anyone have experience or a
solution with this?
Jean-Guy Marcil
2009-08-04 17:55:44 UTC
Permalink
Post by unknown
I am having the same error, however the error occurs when you try to
get into the 'page borders' tab, and Word won't let me enter the tab
to change the settings. Any idea on how to get around this?
Try running this macro, you can change the distances (in points):

Sub SetPageBorderDistance()

With Selection.Sections(1)
With .Borders
.DistanceFromTop = 15
.DistanceFromLeft = 15
.DistanceFromBottom = 15
.DistanceFromRight = 15
End With
End With

End Sub

If you need help with using a macro:
http://word.mvps.org/faqs/macrosvba/CreateAMacro.htm
--
______________________________
Jean-Guy Marcil
Montreal, Canada
k***@gmail.com
2014-04-14 22:34:59 UTC
Permalink
Post by Laura Kay
I'm trying to format borders in a table and the error messge "The measurement
must be between 1 pt and 31 pt" appears.
I've changed the pt size to 1 pt but it doesn't help. It's only in this one
document. If I cut and paste to a new document the borders function works
fine. Unfortunately, it's a huge document and I can't copy the whole thing
to a new document. Anyone have experience or a solution with this?
Make sure you accept all changes to the document first. From your document click on Tools>Macro>Macro's and "Create" a new macro
Copy and paste the following into the new macro and run the macro:
Sub SetPageBorderDistance()

Selection.WholeStory
With Selection.Borders

.DistanceFromTop = 0.5
.DistanceFromLeft = 0.5
.DistanceFromBottom = 0
.DistanceFromRight = 0
End With
With Selection.Sections(1)
.Borders(wdBorderLeft).LineStyle = wdLineStyleNone
.Borders(wdBorderRight).LineStyle = wdLineStyleNone
.Borders(wdBorderTop).LineStyle = wdLineStyleNone
.Borders(wdBorderBottom).LineStyle = wdLineStyleNone
With .Borders
.DistanceFrom = wdBorderDistanceFromPageEdge
.AlwaysInFront = True
.SurroundHeader = True
.SurroundFooter = True
.JoinBorders = False
.DistanceFromTop = 24
.DistanceFromLeft = 24
.DistanceFromBottom = 24
.DistanceFromRight = 24
.Shadow = False
.EnableFirstPageInSection = True
.EnableOtherPagesInSection = True
.ApplyPageBordersToAllSections
End With
End With
With Options
.DefaultBorderLineStyle = wdLineStyleSingle
.DefaultBorderLineWidth = wdLineWidth050pt
.DefaultBorderColor = wdColorAutomatic
End With
End Sub
k***@gmail.com
2014-04-14 22:36:54 UTC
Permalink
First accept all changes in the document. Then go to Tools > Macro > Macros... and click "Create" button.
Copy and paste the following into the macro area:
Sub SetPageBorderDistance()

Selection.WholeStory
With Selection.Borders

.DistanceFromTop = 0.5
.DistanceFromLeft = 0.5
.DistanceFromBottom = 0
.DistanceFromRight = 0
End With
With Selection.Sections(1)
.Borders(wdBorderLeft).LineStyle = wdLineStyleNone
.Borders(wdBorderRight).LineStyle = wdLineStyleNone
.Borders(wdBorderTop).LineStyle = wdLineStyleNone
.Borders(wdBorderBottom).LineStyle = wdLineStyleNone
With .Borders
.DistanceFrom = wdBorderDistanceFromPageEdge
.AlwaysInFront = True
.SurroundHeader = True
.SurroundFooter = True
.JoinBorders = False
.DistanceFromTop = 24
.DistanceFromLeft = 24
.DistanceFromBottom = 24
.DistanceFromRight = 24
.Shadow = False
.EnableFirstPageInSection = True
.EnableOtherPagesInSection = True
.ApplyPageBordersToAllSections
End With
End With
With Options
.DefaultBorderLineStyle = wdLineStyleSingle
.DefaultBorderLineWidth = wdLineWidth050pt
.DefaultBorderColor = wdColorAutomatic
End With
End Sub


Run the Macro

Loading...