K
karina thomas
Hi, I am doing something I thought would be quite simple, but it isn't
working. Basically, I am trying to set the default of the left and right
margins in the Normal template through VBA. From what I understand it should
be the following code...
With ActiveDocument.PageSetup
..LeftMargin = InchesToPoints(1)
..RightMargin = InchesToPoints(1)
..SetAsTemplateDefault
End With
While this code does change the margins for the active document, it does not
set them in Normal.dot, so any new documents are still using the old margin
settings. It doesn't generate any errors, it simply doesn't do it.
I tried saving the active document after running the code, because I know
that seems to be the trick when trying to save styles to the attached
template, but that didn't change anything. Any ideas would be appreciated!
working. Basically, I am trying to set the default of the left and right
margins in the Normal template through VBA. From what I understand it should
be the following code...
With ActiveDocument.PageSetup
..LeftMargin = InchesToPoints(1)
..RightMargin = InchesToPoints(1)
..SetAsTemplateDefault
End With
While this code does change the margins for the active document, it does not
set them in Normal.dot, so any new documents are still using the old margin
settings. It doesn't generate any errors, it simply doesn't do it.
I tried saving the active document after running the code, because I know
that seems to be the trick when trying to save styles to the attached
template, but that didn't change anything. Any ideas would be appreciated!