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 / Outlook / Programming Add-Ins / September 2005

Tip: Looking for answers? Try searching our database.

Closing Word Editor Window

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kacker - 28 Sep 2005 17:55 GMT
I've created an Outlook add-in using VB6 and have run into an issue with
users using Word as their editor. I've hooked into the "Application.ItemSend"
event to check the outgoing email against some criteria. There is a section
of my code that will cancel the original email send and close the editor
window:

   Cancel = True
   Call oApp.ActiveInspector.Close(olDiscard)
               
The code runs fine if the user is using the regular Outlook editor but if
they've set the editor to be Word, the editor screen says open.

How do I send the Word window the close command?

Thanks.
kacker - 28 Sep 2005 18:31 GMT
Just an update for my previous message, I'm getting the error specifically at
the line:

Call oApp.ActiveInspector.Close(olDiscard)

> I've created an Outlook add-in using VB6 and have run into an issue with
> users using Word as their editor. I've hooked into the "Application.ItemSend"
[quoted text clipped - 11 lines]
>
> Thanks.
 
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.