Frequently Asked Visual Basic Questions

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 Microsoft Office 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?

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 Microsoft Office 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?