Positioning Popup Menu using CommandBar and ShowPopup

B

bstobart

I'm using the following command to popup a menu bar in MS-Project when the
user makes a certain type of change to a task:

Application.CommandBars("MyMenuBar").ShowPopup

I'm leveraging the ProjectBeforeTaskChange event.

Because the Planning Wizard typically pops up before my macro runs, the
cursor is often far from the original task when my menu pops up. I'd like
the menu to popup close to the currently selected field of the task. I see
that the ShowPopup command takes two arguments (x,y) for the position of the
popup menu. How can I set these two values such that the menu appears close
to the currently selected task field?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top