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 (e-mail address removed)
Products http://www.geocities.com/word_heretic/products.html

Replies offlist may require payment.
 

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