OLEUsage Property Example
This example adds a new button to the command bar named Tools, and sets its OLEUsage property.
Tools
Set myControl = CommandBars("Tools").Controls _ .Add(Type:=msoControlButton,Temporary:=True) myControl.OLEUsage = msoControlOLEUsageNeither