|
-
Apr 6th, 2001, 07:58 AM
#1
Thread Starter
Addicted Member
Anybody know how to set the margin in word through the word.application object in vb?
-
Apr 6th, 2001, 08:07 AM
#2
Fanatic Member
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...
-
Apr 6th, 2001, 08:11 AM
#3
Thread Starter
Addicted Member
But then the macro will only be on my machine wouldnt it? I need to deploy this to multiple machines.
-
Apr 6th, 2001, 08:12 AM
#4
New Member
ActiveDocument.PageSetup.LeftMargin = InchesToPoints(0.75)
etc.
-
Apr 6th, 2001, 08:25 AM
#5
Thread Starter
Addicted Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|