method Items.UngroupBars (ItemA as HITEM, KeyA as Variant, ItemB as HITEM, KeyB as Variant)
Ungroups two bars.

TypeDescription
ItemA as HITEM A long expression that indicates the handle of the item that contains the bar to ungroup.
KeyA as Variant A long or string expression that specifies the key of the bar to ungroup. The Key parameter of the  AddBar method specifies the key of the bar being added. 
ItemB as HITEM A long expression that indicates the handle of the item that contains the bar being ungrouped.
KeyB as Variant A long or string expression that specifies the key of the bar being ungrouped. The Key parameter of the  AddBar method specifies the key of the bar being added. 
The UngroupBars method ungroups two bars. Use the UngroupBars method to ungroup bars being grouped using the GroupBars method. Use the Link(exLinkGroupBars) on exGroupBarsNone to ungroup the linked bars. 

The UngroupBars method works as follow:

Use the  RemoveLink method to remove a specified link. Use the RemoveLinksOf method to remove all links that start or end on the specified bar.