Class is not set (Error 31018)
This page is specific to the Visual Basic for Applications (VBA) Language Reference for Office 2010.
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.