Handling the ItemAdd event

B

Bongo

Sorry in advance for the stupid question . . .

I am trying to write a handler for the ItemAdd event and simply don't know
where to put stuff. There's a code example in the help file that has two
declarations and two subs. I don't know what modules to put them in to get
things to work. It also says that the handler initialization must be called
before the handler starts working (I assume that means this should be called
from Private Sub Application_Startup() in ThisOutlookSession.

I have tried a bunch of (what must be unreasonable) permutations, but can't
even get a debug.print to fire when a new message arrives.

(On a related point, all the examples I've seen of ItemAddd seem to take the
incoming Item "ByVal". However, I want to change mine. Will ItemAdd work with
"ByRef"?)

Tx & rgds
 

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