Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Add-ins for Outlook (http://www.outlookbanter.com/add-ins-outlook/)
-   -   access to and subject of a wordmail item (http://www.outlookbanter.com/add-ins-outlook/41403-access-subject-wordmail-item.html)

[email protected] March 5th 07 12:16 PM

access to and subject of a wordmail item
 
Hi Ken

I have found the solution!!

All you need to do is to do objmailitenm.save! and the fields are then
recognised!

It is always something really small!

Many thanks for your help on this one

Jamie :-)


On Mar 1, 5:07 pm, "Ken Slovak - [MVP - Outlook]"
wrote:
More than 1 Activate event is normal. With WordMail you even get an extra
Activate event over the Outlook editor, as a sort of bonus g.

About all I can think of is that when you are entering subject and to and
are in the MailEnvelope portion of the WordMail window that the Outlook
Inspector hasn't yet been updated with that data. Unfortunately there's no
real way to read that mailenvelope data from the msoEnvelope wrapper.

You might be able to set the cursor to the body of the email by setting a
selection in the Document object (WordEditor). That might update the
Inspector.CurrentItem properties.

--
Ken Slovak
[MVP - Outlook]http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Optionshttp://www.slovaktech.com/products.htm

wrote in message

oups.com...



Hi Ken


I have added the following to the activate event


msgbox objinsp.to


and


after binding


msgbox objmailitem.subject


and they both return empty strings with no errors


However, if i then enter an email address and a subject in wordmail
new mail form, then click my control and check objmailitem.to or
objmailitem.subject, they are an empty string. this is very strange.
It works fine if word is not the mail editor. i am testing using
outlook 2003


What is wierd, is that when i open a new word mail, the
objinsp_activate is fired several times, is this right?


is there some sort of event i can fire which sort of updates the
objinsp with the values entered in the new mail fields
programmatically?


cheers


Jamie- Hide quoted text -


- Show quoted text -





All times are GMT +1. The time now is 06:59 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com