You can't set the Position property to the intrinsic constant msoBarPopup. To create a shortcut menu, use the Position argument of the Add method of the CommandBars collection.