VBAで作ったファイルをリボン付でアドイン化する 前提1:ExcelのVBAに、IRibbonControl型のパラメーターを唯一の引数とする関数は_eventhandlerを接尾語として記述する Public Sub MainHtmlReading_eventhandler(control As IRibbonControl) Htmlreader End Sub '呼出し関数の本体 Public Sub Htmlreader() 'VBAの処理 End Sub 前提2:ExcelのVBAを特定のブックに依存しない形で作成し、xlam形式(Excelアドイン)で保存する ツールのダウンロード OfficeCustomUIEditorSetup.zip をダウンロードする http://openxmldeveloper.org/blog/b/openxmldeveloper/archive