CommandBar.ShowPopup(Object, Object) Method

Definition

Displays a command bar as a shortcut menu at the specified coordinates or at the current pointer coordinates.

public void ShowPopup (object x, object y);
abstract member ShowPopup : obj * obj -> unit
Public Sub ShowPopup (Optional x As Object, Optional y As Object)

Parameters

x
Object

Optional Object. The x-coordinate for the location of the shortcut menu. If this argument is omitted, the current x-coordinate of the pointer is used.

y
Object

Optional Object. The y-coordinate for the location of the shortcut menu. If this argument is omitted, the current y-coordinate of the pointer is used.

Remarks

If the Position property of the command bar is not set to msoBarPopup, this method fails.

Applies to