Bonjour
function rightclick(event)
if right(event.AbsoluteName, 4 ) = "$A$1" then
msgbox "Voila"
rightclick = True
'in case you need Contextmenu after:
'rightclick = False
end if
end function
'more improved:'
function rightclick(event)
observe = event.Spreadsheet.getCellRangeByName("A1").RangeAddress
if event.queryIntersection( observe ).Count then
v = msgbox ("continuer avec menu contextuel ?",4)
if v = 7 then ' ⇒ No!'
rightclick = True
exit function
end if
end if
end function
( traduction par deepl ):
Associer cette fonction à l’événement : «clic droit» du tableau ( ⇒ clic droit onglet tableau ⇒ événement )…