custom popup menu in cell

R

roy

i want to create custom popup menu triggered when user right-clicks on
cell. i will create this menu on workbook open and 'switch' it with
the default 'cell' menu on the Worksheet_BeforeRightClick event. can
someone help me with syntax where i've placed the "??"s..............
Thanks very much

here is the code....

sub createMenu
dim myRS as adodb.recordset
dim myGlobalMenu as popUpmenu

set myRS...........

while not myRS.eof and myRS.bof
...add new menuItem to popup menu here...
??
.caption = myRs!name
.tag = myRs!ur
.action addUrl ( pass menuItem object to sub "addURL")
myRs.movenext
wend

end sub

sub addUrl (aMenuItem as menuITem)
' add caption to current cell
??
' add url to right of current cell
??

end sub

Worksheet_BeforeRightClick
' replace current cell popup menu with myGlobalMenu
??????
end sub
 

Ask a Question

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.

Ask a Question

Top