Log in

View Full Version : How to get a handle on Word VBA



marcelma
10-11-2010, 04:45 AM
hello,

I have a very fundamental request:
Since years I write VBA macros for Word to "humanize" tedious and mind-numbing tasks, but although I have become a little better, I am still using only rudiments of what the language seems to be capable of and if I read around in diverse forums there are quite a few code-examples I can't follow.

Can anybody give me a hint how to get a handle on that language, how to find the elements I am looking for etc.? Something where you can say: "This has worked very well for me". There are countless books on the subject, but either they start with Adam and Eve and never bring me to the point I am interested in, or they contain lots of samples of code with too little explanation. Isn't there anything like a real overview of all the different elements of the language together with sufficient explanation of what they do? I am mostly reverting to the VBA help that comes with WinWord, but this helps only when I already know quite a bit about the issue in question.

Thank you very much in advance,
Marcel

Tinbendr
10-11-2010, 06:17 AM
I continue to recommend Steven Roman's "Writing Word Macros" ISBN:978-1565927254. It's very dated now (1999), but the core to understanding Word is still relevant in his book.

David

fumei
10-12-2010, 09:41 AM
VBA Developer's Handbook by Ken Getz and Mike Gilbert ISBN 0-7821-2978-1

Word 2000 Developer's Handbook by Guy Hart-Davis (this is still available amazingly enough) from Amazon.

While, yes the Word 2000 book seems out of date (and it is) it has a huge amount of information about objects that are still relevant, and its expression of structural syntax is invaluable.