I am cleaning up the formatting of a large existing document for its next revision. I am using VBA to do a lot of the heavy lifting but I am having a problem with setting the overall page layout. Specifically, the code below:
With ActiveDocument.PageSetup
.HeaderDistance = InchestoPoints (0.2)
.FooterDistance = InchestoPoints (0.2)
End With
returns the error:
Run-time Error '4608'
Value out of range
Now this doesn't happen all the time, just most of the time. I don't really know what the difference is between the times it does work and the times it doesn't. So if anyone knows why this would happen, I would really like to know.