Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / January 2005

Tip: Looking for answers? Try searching our database.

how to capture the right-click event in MSWord through a word macro (visual basic macros)?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jay - 12 Jan 2005 12:18 GMT
I want an action to be performed during the mouse right-click in MSWord.
how to capture the right-click event of MSWord(in a word macro)?
Ol - 12 Jan 2005 19:47 GMT
1) You have to create classmodule to capture events

2) Check that Application event: WindowBeforeRightClick

Private Sub App_WindowBeforeRightClick(ByVal Sel As Selection, Cancel As
Boolean)

End Sub

> I want an action to be performed during the mouse right-click in MSWord.
> how to capture the right-click event of MSWord(in a word macro)?
kjaysree@gmail.com - 17 Jan 2005 04:31 GMT
I've called the macro function that is to be trigerred during the
right-click, inside WindowBeforeRightClick, application event.

Private Sub App_WindowBeforeRightClick(ByVal Sel As Selection, Cancel
As
Boolean)

macro1.fn1(Sel)

End Sub

The application event(WindowBeforeRightClick) is not at all executed.
kjaysree@gmail.com - 17 Jan 2005 04:32 GMT
I've called the macro function that is to be trigerred during the
right-click, inside WindowBeforeRightClick, application event.

Private Sub App_WindowBeforeRightClick(ByVal Sel As Selection, Cancel
As
Boolean)

macro1.fn1(Sel)

End Sub

The application event(WindowBeforeRightClick) is not at all executed.
What could be the possible mistake?  How can it be rectified?

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.