You don't really give any details, but you could use an event, like this.
where right clicking on A1 will disable the control, and right-clicking on
any other cell will enable it.
Private Sub Workbook_SheetBeforeRightClick( _
ByVal Sh As Object, _
ByVal Target As Range, _
Cancel As Boolean)
With Application.CommandBars("Bar Name") _
.Controls("Menu Name")
If Target.Address = "$A$1" Then
..Enabled = False
Else
..Enabled = True
End If
End With
End Sub
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.