Home |
Search |
Today's Posts |
#1
|
|||
|
|||
trigger a macro when user right clicks in a cell of a word table
How can I execute a VBA macro when a user right clicks in a cell of a word
(XP) table |
#2
|
|||
|
|||
On Sat, 18 Jun 2005 15:46:03 -0700, "Arlan"
wrote: How can I execute a VBA macro when a user right clicks in a cell of a word (XP) table Have a look at the article http://word.mvps.org/FAQs/MacrosVBA/AppClassEvents.htm. Note that one of the events for which you can write a procedure is WindowBeforeRightClick. In that procedure, you would have to test whether Selection.Information(wdWithinTable) is True. If not, then simply exit from the procedure; otherwise, do whatever processing you want. -- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Table in a Form | Tables | |||
Prevent User from Changing Macro Security | Microsoft Word Help | |||
Adding Autotext in a Macro User Form field | Microsoft Word Help | |||
Getting Spell Check Macro to work | Microsoft Word Help | |||
Macro to set selected cell padding to table default | Tables |