There are a lot of free sources to learn about the object model of MSExcel but I failed to find any comprehensive source for a similar source for MS word.
Can You suggest a free and comprehensive source for the same?
There are a lot of free sources to learn about the object model of MSExcel but I failed to find any comprehensive source for a similar source for MS word.
Can You suggest a free and comprehensive source for the same?
In the VBA editor, if you hit F2, there's an object browser that is a pretty handy reference. You can also filter it for Word-specific objects.
A look into the VBA Help (along with the debugger) helped me to learn anything I needed. The help file is really comprehensive.
I recently learned the Word Object Model and I found the following pages most helpful. I think that as long as you understand the Word Application (from a user perspective), all you need to do is flesh out your understanding of Word.Range and eventually Word Story Types. And as the other posters have suggested, the Object Browser in Word's Visual Basic Editor is very convenient for browsing the available properties and methods for any particular object.
Entry point for all Word VBA. Browse by method, object, collection, etc.:
Helpful pages specifically about using Word's Ranges:
An introduction to Word's Story Types: