クラス名が利用できるのはActiveXオブジェクトのみで、それ以外のアプリケーションはインスタンスを生成することはできません。また、引数にセットするオブジェクトのクラス名が設定されていないアプリケーションもインスタンスを生成できません。 CreateObject関数がインスタンスの生成に成功すると、そのオブジェクトへの参照を返してくるので、これをSetステートメントでオブジェクト型に宣言した変数に格納します。 リスト1は、WordのインスタンスをCreateObject関数で作成するプロシージャです。 リスト1:WordのインスタンスをCreateObject関数で作成 Sub Wordの起動と表示() ' Microsoft Word 12.0 Object Libraryへの参照が必要 Dim WD As Word.Application Set WD = CreateObject("