方法一
セールの「ThisWorkbook」にて、「Workbook」の「Open」関数にて、ロジックを追加する
1 Private Sub Workbook_Open() 2 Msgbox "HelloWorld!" 3 End Sub
方法二
セールの標準モジュールにで、Privateの関数を追加する。(※関数の名称は「xxxx_Open」となる)
1 Private Sub Auto_Open() 2 Msgbox("HelloWorld!!!") 3 End Sub