Private Sub CommandButton1_Click() Dim cBar As CommandBar Set cBar = Application.CommandBars.Add(Name:="ButtonMenu", Position:=msoBarPopup, Temporary:=True) ' 새로운 메뉴를 추가합니다. Dim cCtrl As CommandBarControl Set cCtrl = cBar.Controls.Add(Type:=msoControlPopup, Temporary:=True) cCtrl.Caption = "새로운 메뉴" cCtrl.Tag = "NewMenu" ' 새로운 메뉴에 하위 메뉴를 추가합니다. Dim subCtrl As CommandBarControl Set subCtrl = cCtrl..