1

WordのVBAにおける以下の関数を用いて動的に生成したCommandButtonのClickイベントの処理はどのようにすれば定義できるのでしょうか?
https://docs.microsoft.com/ja-jp/office/vba/language/reference/user-interface-help/add-method-microsoft-forms

CommandButtonは同名のクラスがいくつかあるようですが、今回はWordのUserFormにおけるCommandButtonを生成するとのことです。
https://docs.microsoft.com/ja-jp/office/vba/language/reference/user-interface-help/commandbutton-control

同名のこのCommandButton(Access)と同じようにOnClickプロパティを指定しようとしてもOnClickプロパティ自体がない様子のため失敗しました。
https://docs.microsoft.com/ja-jp/office/vba/api/access.commandbutton

0

この質問に回答するには、ログインする必要があります。

のタグが付いた他の質問を参照する。