본문 바로가기

Etc/MicroSoft Office

-_-장난하나!!

(CommandBar).Controls.Add();
라는 함수를 사용 할때 첫번째 인자로 Enum 타입형태인 MsoControlType 을 받는데 이 Enum 타입에는 다양한 컨트롤들이 있는데
실제로 사용 할수 있는건 아래 보는것과 같은 놈들만 된다고 하네요!!


Used with the Add method of the CommandBarControls object. Only a limited set of the control types can be created via the CommandBars object model: msoControlButton, msoControlEdit,msoControlDropdown, msoControlComboBox, msoControlPopup, and msoControlActiveX. Other control types may exist on built-in or add-in command bars, but cannot be created via the object model.

장난하냣!!!! 차라리 빼라!!