I have problem here, in my popup menu have this menu, A,B,C
I show all menu when I right click on mouse.
How do show only C menu when I right click on mouse and invisible the other?
Code:
If Button = vbRightButton Then
PopupMenu Layer
End If
Printable View
I have problem here, in my popup menu have this menu, A,B,C
I show all menu when I right click on mouse.
How do show only C menu when I right click on mouse and invisible the other?
Code:
If Button = vbRightButton Then
PopupMenu Layer
End If
Try this
where a and b are the names of the menuitems.Code:If vbRightButton Then
a.Visible = False
b.Visible = False
Me.PopupMenu POPUP
End If
Thank you amrita, I got an idea from this:D