Word EVENTS

G

Gabriel RIvera

I am having trouble dealing with events and online
instructions like these
(http://msdn.microsoft.com/library/default.asp?
url=/library/en-
us/vbawd10/html/wohowapplicationevents.asp) don't help.

Ok i have this..
as my variable declaration
Dim WithEvents wapp As Word.Application

and this as my method i want to add code to.
This method i got it from using the VB.NET STUDIO
automated object drop down menu's which makes methods.

Private Sub wapp_Quit() Handles wapp.Quit
End Sub

HOWEVER, when i try of compiling this code i get the error

'Quit' is ambiguous across the inherited
interfaces 'Word._Application'
and 'Word.ApplicationEvents3_Event'.


Don't know how to fix this? Can anyone help?

-g
 
C

Cindy Meister -WordMVP-

Hi Gabriel,
and this as my method i want to add code to.
This method i got it from using the VB.NET STUDIO
automated object drop down menu's which makes methods.
Best to ask this in a VB.NET newsgroup, as automating an
Office applciation via NET is different than from within
the VBA environment. Maybe dotnot.languages.vb or
vstudio.general

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update
Jan 24 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:)
 

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