Using VB in Word?

C

CW

I have developed entire databases in Access and am reasonably familiar with
VB.
I haven't done much automation in Word at all, just a few macros.
Is the full power of VB available in Word, and if so, how do I get at it?
What I have in mind, as an example, is the automation of scanned signature
images, so that If a person's name at the end of a document = whatever, the
appropriate signature will be inserted.
I have this working in Access...how would I do it in Word (if I can)
Many thanks
CW
 
J

Jay Freedman

I have developed entire databases in Access and am reasonably familiar with
VB.
I haven't done much automation in Word at all, just a few macros.
Is the full power of VB available in Word, and if so, how do I get at it?
What I have in mind, as an example, is the automation of scanned signature
images, so that If a person's name at the end of a document = whatever, the
appropriate signature will be inserted.
I have this working in Access...how would I do it in Word (if I can)
Many thanks
CW

Word supports "Visual Basic for Applications" (VBA), which is based on but _not_
the same as VB 6.0. There's an extensive object model devoted specifically to
the features of Word, but on the other hand there are a great many parts of VB
that are not in VBA. If there are things in VB that you need, generally you can
write a DLL in VB and call it from VBA.

For the example you mentioned, you don't need either VB or VBA. Store the
scanned signatures in the template as AutoText entries, and the appropriate
entry can be inserted into a document in any of several ways. See
http://www.word.mvps.org/FAQs/Customization/AutoText.htm.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top