This workbook covers two areas:
- Creating a popup menu
- Using the Right_Click event
The popup menu is in the VBA module "PopUpMenu".
The main procedure is called "CreateSubMenu". There are
also some supporting procedures.
The module for the "WorksHere" sheet contains one
procedure:
- Worksheet_BeforeRightClick
When you are in the "WorksHere" sheet, this procedure runs
each time you click on the right mouse button. It runs the popup menu,
allows you to make a selection and then closes.
To stop the default popup menu running, we include the
line:
|