Anybody know how to set the margin in word through the word.application object in vb?
Printable View
Anybody know how to set the margin in word through the word.application object in vb?
Record a macro in Word. set a reference to Word in VB, creat a new instance (Dim objWord as New Word.Application), and copy the recorded macro to your new project.
You'll need to adapt the copied code of course...
But then the macro will only be on my machine wouldnt it? I need to deploy this to multiple machines.
ActiveDocument.PageSetup.LeftMargin = InchesToPoints(0.75)
etc.
thanks