Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Excelにコンボボックスがあり、次のVBAコードがあります。しかし、現在、Excelが開かれたときに機能しています。
Sub worksheet_activate() mapping.clear mapping.Additem "File to Table" mapping.Additem "Table to File" End Sub
では、Excelを開いたときにコンボボックスを自動的にロードする方法を教えてください。
私がこのようにしたとき、それは働きました。ワークシートマクロでこれを行います。
Private Sub Workbook_Open() With Sheet1.mapping .AddItem "File to Table" .AddItem "Table to File" End With End Sub