CommandBar.ShowPopup Method
Displays a command bar as a shortcut menu at the specified coordinates or at the current pointer coordinates.
Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)
Syntax
'Declaration
Sub ShowPopup ( _
x As Object, _
y As Object _
)
'Usage
Dim instance As CommandBar
Dim x As Object
Dim y As Object
instance.ShowPopup(x, y)
void ShowPopup(
Object x,
Object y
)
Parameters
x
Type: System.ObjectOptional 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
Type: System.ObjectOptional 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.