E
Eric Legault [MVP - Outlook]
I'm using the Word Object Model to work with the body of a new e-mail
message in Outlook 2007. My goal is to simply clone the active e-mail into
one or more copies (the recipients from the source will each get their own
copy of the original, which will be trashed). I'm tried using
Document.Select, then Application.Copy on the source e-mail, followed by
Document.Activate, Document.Select (the Document objects are specific to the
cloned item, not the source), Application.Selection.WholeStory and then
Application.Selection.PasteAndFormat(wdPasteDefault) on each newly cloned
e-mail. However, there are times when I get a locked for editing warning
and the cloning fails - empty message body; this occurs inconsistently.
Is there a better approach to cloning the contents of a Document object in
situations like this where the documents are not file based?
--
Eric Legault [MVP - Outlook]
MCDBA, MCTS (Messaging & Collaboration, SharePoint Infrastructure, MOSS 2007
& WSS 3.0 Application Development)
President
Collaborative Innovations
-> Try Picture Attachments Wizard 2.0 For Microsoft Outlook <-
-> Take your SharePoint content offline <-
-> More info: http://www.collaborativeinnovations.ca <-
Blog: http://blogs.officezealot.com/legault
message in Outlook 2007. My goal is to simply clone the active e-mail into
one or more copies (the recipients from the source will each get their own
copy of the original, which will be trashed). I'm tried using
Document.Select, then Application.Copy on the source e-mail, followed by
Document.Activate, Document.Select (the Document objects are specific to the
cloned item, not the source), Application.Selection.WholeStory and then
Application.Selection.PasteAndFormat(wdPasteDefault) on each newly cloned
e-mail. However, there are times when I get a locked for editing warning
and the cloning fails - empty message body; this occurs inconsistently.
Is there a better approach to cloning the contents of a Document object in
situations like this where the documents are not file based?
--
Eric Legault [MVP - Outlook]
MCDBA, MCTS (Messaging & Collaboration, SharePoint Infrastructure, MOSS 2007
& WSS 3.0 Application Development)
President
Collaborative Innovations
-> Try Picture Attachments Wizard 2.0 For Microsoft Outlook <-
-> Take your SharePoint content offline <-
-> More info: http://www.collaborativeinnovations.ca <-
Blog: http://blogs.officezealot.com/legault