Hey all,

I got started with VBA using MS Access. I'm now trying to learn to apply
it to Word. At this point, I'm not even sure of what events there are,
besides open, close, and new, that I can use to trigger my code. I have
no idea how to use form controls, etc. Anyone have any suggestions (and
I'm sure you do) of what I could read to get me started?

Thanks

grep

Re: Newbie Question by Jay

Jay
Fri Aug 06 14:26:42 CDT 2004

Hi grep,

The MVPs FAQ site has a lot of the answers, for example:

For events:
http://word.mvps.org/FAQs/MacrosVBA/ApplicationEvents.htm
http://word.mvps.org/FAQs/MacrosVBA/DocumentEvents.htm
http://word.mvps.org/FAQs/MacrosVBA/PseudoAutoMacros.htm
http://word.mvps.org/FAQs/MacrosVBA/InterceptSavePrint.htm

For userforms (Word doesn't have Access-like form controls):
http://word.mvps.org/FAQs/Userforms/CreateAUserForm.htm

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org

grep wrote:
> Hey all,
>
> I got started with VBA using MS Access. I'm now trying to learn to
> apply it to Word. At this point, I'm not even sure of what events
> there are, besides open, close, and new, that I can use to trigger my
> code. I have no idea how to use form controls, etc. Anyone have any
> suggestions (and I'm sure you do) of what I could read to get me
> started?
>
> Thanks
>
> grep



Newbie Question by dennis

dennis
Fri Aug 06 15:25:51 CDT 2004

Well, in order to use VB for Word at all, you first have to
include a "reference lick" to the "Word 10" objects via
TOOLS in vB. Once you've added that reference, all the Word
objects become available to your vB code.

Dennis


>-----Original Message-----
>Hey all,
>
>I got started with VBA using MS Access. I'm now trying to
learn to apply
>it to Word. At this point, I'm not even sure of what
events there are,
>besides open, close, and new, that I can use to trigger my
code. I have
>no idea how to use form controls, etc. Anyone have any
suggestions (and
>I'm sure you do) of what I could read to get me started?
>
>Thanks
>
>grep
>.
>

Re: Newbie Question by fdde

fdde
Fri Aug 06 20:00:45 CDT 2004

Try the object browser (You can get there by opening word, creating a macro
and pressing F4). That's how I got started when I first used VBA! The same
functions will be available in VB when you reference the word library.
"grep" <grep@grep.com> wrote in message
news:%23l3ryb%23eEHA.3928@TK2MSFTNGP11.phx.gbl...
> Hey all,
>
> I got started with VBA using MS Access. I'm now trying to learn to apply
> it to Word. At this point, I'm not even sure of what events there are,
> besides open, close, and new, that I can use to trigger my code. I have
> no idea how to use form controls, etc. Anyone have any suggestions (and
> I'm sure you do) of what I could read to get me started?
>
> Thanks
>
> grep



Re: Newbie Question by grep

grep
Sun Aug 08 15:55:29 CDT 2004

Excellent! Thanks Jay and fdde. Dennis, I appreciate your help too, but
I'd appreciate it more if you could explain what you actually said. :)

grep

fdde wrote:

> Try the object browser (You can get there by opening word, creating a macro
> and pressing F4). That's how I got started when I first used VBA! The same
> functions will be available in VB when you reference the word library.
> "grep" <grep@grep.com> wrote in message
> news:%23l3ryb%23eEHA.3928@TK2MSFTNGP11.phx.gbl...
>
>>Hey all,
>>
>>I got started with VBA using MS Access. I'm now trying to learn to apply
>>it to Word. At this point, I'm not even sure of what events there are,
>>besides open, close, and new, that I can use to trigger my code. I have
>>no idea how to use form controls, etc. Anyone have any suggestions (and
>>I'm sure you do) of what I could read to get me started?
>>
>>Thanks
>>
>>grep
>
>
>