Frequently Asked Visual Basic Questions
General questions
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)?
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?
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for