Reply
 
Thread Tools Display Modes
  #1   Report Post  
Arlan
 
Posts: n/a
Default 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   Report Post  
Jay Freedman
 
Posts: n/a
Default

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

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Table in a Form HiDbLevel Tables 12 February 27th 06 12:59 PM
Prevent User from Changing Macro Security JoyceJoseph Microsoft Word Help 1 March 31st 05 08:49 PM
Adding Autotext in a Macro User Form field Onka Microsoft Word Help 1 February 10th 05 05:39 AM
Getting Spell Check Macro to work Tom Hyland Microsoft Word Help 8 January 14th 05 06:45 PM
Macro to set selected cell padding to table default Cindy M -WordMVP- Tables 0 October 28th 04 06:09 PM


All times are GMT +1. The time now is 06:54 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"