WindowBeforeRightClick

J

Jonas Olofsson

Hi!

I am trying to use the WindowBeforeRightClick event on the application
object in Office XP. Problem is when the user right-clicks a _shape_ the
event is sometimes not fired! The problem does not occur in Word 2000. Try
the follwing code. Very thankful for suggestions on how to counteract this.

Private WithEvents mobjAppl As Word.Application

Set mobjAppl = New clsApplication

Private Sub mobjAppl_WindowBeforeRightClick(ByVal Sel As Selection, Cancel
As Boolean)
msgbox "WindowBeforeRightClick"
End Sub

Thanks,

Jonas
 
W

Word Heretic

G'day "Jonas Olofsson" <noemail>,

Workaround: add your commands to the shortcuts menu for pictures.


Jonas Olofsson said:
Hi!

I am trying to use the WindowBeforeRightClick event on the application
object in Office XP. Problem is when the user right-clicks a _shape_ the
event is sometimes not fired! The problem does not occur in Word 2000. Try
the follwing code. Very thankful for suggestions on how to counteract this.

Private WithEvents mobjAppl As Word.Application

Set mobjAppl = New clsApplication

Private Sub mobjAppl_WindowBeforeRightClick(ByVal Sel As Selection, Cancel
As Boolean)
msgbox "WindowBeforeRightClick"
End Sub

Thanks,

Jonas

Steve Hudson

Word Heretic, Sydney, Australia
Tricky stuff with Word or words for you.
Email [email protected]
Products http://www.geocities.com/word_heretic/products.html

Replies offlist may require payment.
 
Top