View Single Post
 
Old 12-22-2016, 07:28 AM
gmaxey gmaxey is offline Windows 7 32bit Office 2016
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,598
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

See: http://gregmaxey.com/word_tip_pages/...der_addin.html Your user defined procedure would be:

Code:
Function ChangeTopMargin(ByRef oDoc As Word.Document) As Boolean
  On Error GoTo Err_Handler
  oDoc.PageSetup.TopMargin = CentimetersToPoints(6)
  ChangeTopMargin = True
lbl_Exit:
  Exit Function
Err_Handler:
  ChangeTopMargin = False
  Resume lbl_Exit
End Function
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote