Object Doesn't Support this Property or Method
The "object doesn't support this property or method" error occurs when you try to use a method or property that the specified object doesn't support. For example, the following instruction results in an error.
ActiveDocument.Copy
The ActiveDocument property returns a Document object. A Copy method or property is not available for the Document object so an error occurs. To determine what properties and methods are available for an object, do any of the following.
- Use the Object Browser to determine what members (properties and methods) are available for the selected class (object).
- Use the Auto List Members feature in the Visual Basic Editor. When you type a period (.) after a property or method in the Visual Basic Editor, a list of available properties and methods is displayed
- Use Word Visual Basic Help to determine which properties and methods can be used with an object. Each object topic in Help includes a Properties and Methods jump that displays a list of properties and methods for the object. Press F1 in the Object Browser or a module to display the appropriate Help topic.
- Use the TypeName function to determine the type of object returned by an expression. The following example displays "Range" because the Content property returns a Range object.
MsgBox TypeName(ActiveDocument.Content)