Table of contents
Collapse the table of content
Expand the table of content

Method not valid without suitable object

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Not all methods can be performed by all objects. This error has the following cause and solution:

  • You called a method without specifying an object, and the method isn't valid for the implicit object. For example, you can't use the Line method in astandard module without a valid object qualifier because a standard module can't display the output of the Line method.

    Explicitly qualify the method call with an object that can accept the method. For example, you can specify a form or picture box with the Line method.

    Note Other methods that need an explicit object qualifier when used in a standard module include Circle, Print, and PSet.

For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).

© 2018 Microsoft