Ken,
Thanks for that, the DoEvents didn't work. But the GetItemFromID() approach
did.
Unfortnatly, that moved me onto another hurdle.
The reason I'm copying is that I'm modifying the reply method, and wanted to
ensure that the original item was not affected. And this works fine as I
expected - except when I have an open attachment. The Currmail.Copy code
gives me a "An attachment to this message may be currently open in another
program......" message.
If I click YES to continue, the codes works fine. If NO, then NewMail is
empty and the code falls over with Object Expected.
Any thoughts, as to how I can work around this.
"Ken Slovak - [MVP - Outlook]" wrote:
Then I'm inclined to think it's a timing problem. If putting a DoEvents in
between saving the item and calling Reply doesn't do the trick then after
saving get NewItem.EntryID, release all references to the objects and get a
new object using the saved EntryID and NameSpace.GetItemFromID() and see if
that does the trick.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
"Womble" wrote in message
...
Saving it first i.e. NewMail.Save makes no difference. I still get the
same
error.