Word Reference

Frequently Asked Visual Basic Questions

Direct Answer

Frequently Asked Visual Basic Questions is part of the Word VBA object model. This reference page documents its syntax, parameters, and typical usage.

Reference

General questions

How do I record macros?

What are objects, properties, and methods?

How do I find out which property or method I need?

How do I return a single object from a collection?

Questions about Word features

How do I refer to the active element (for example, paragraph, table, field)?

What is a Range object?

How do I refer to words, sentences, paragraphs, or sections in a document?

I keep getting the "object doesn't support this property or method" error; how can I avoid it?

How do I create, open, save, and close documents?

How do I select text in a document?

How do I insert text into a document?

I keep getting the "requested member of the collection does not exist" error; how can I avoid it?

How do I loop on a collection?

How do I prompt for information from the user?

How do I return text from a document?

How do I know if the Application property is needed before a top-level property or method?

How do I display a built-in Word dialog box?

I keep getting an error when I try to access a table row or column?

WordBasic questions

How do I convert my WordBasic macros to Microsoft Visual Basic?

How do I find the Visual Basic equivalent for a WordBasic command or function?

!include[Support and feedback]

Reference: Word object-model documentation • updated 06/08/2019. Rebuilt for readability; see the original for complete parameter matrices.