Dear All,
I have some VBA code which i found on the net to create a shortcut menus on form when right-click on form
but i really dont know what is the steps to proceed to have this shortcut as right-click
Shall i paste below these code on a module or on the form load
Can you please tell me how do i proceed please, whats the step and how to put the shortcut menu on the forms properties
Please i really need how to proceed
Thanking you in advance for your kindness
Sub CreateSimpleShortcutMenu()
Dim cmbShortcutMenu As Office.CommandBar
' Create a shortcut menu named "SimpleShortcutMenu.
Set cmbShortcutMenu = CommandBars.Add("SimpleShortcutMenu", msoBarPopup, False, True)
' Add the Remove Filter/Sort command.
cmbShortcutMenu.Controls.Add Type:=msoControlButton, ID:=19
' Add the Filter By Selection command.
cmbShortcutMenu.Controls.Add Type:=msoControlButton, ID:=21
' Add the paste By Selection command.
cmbShortcutMenu.Controls.Add Type:=msoControlButton, ID:=22
' Add the delete By Selection command.
cmbShortcutMenu.Controls.Add Type:=msoControlButton, ID:=478
Set cmbShortcutMenu = Nothing
End Sub