Class is not set (Error 31018)

If you don't specify a source document (SourceDoc property) when setting Action = 0 (CreateEmbed method), the Class property must be set to the name of a class available on your system.

To display a list of the available class names at design time, right-click the OLE container control and choose the Insert Object command.

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.