triggering the "post reply to folder" action

D

danst31

I have a PostItem object and want my macro to trigger the context menu
- post reply to folder action; and have access to the newly created
PostItem. The Reply and Forward methods return a MailItem object
that I can manipulate as I want, but there doesn't appear to be any
way to create a PostItem.
 
D

danst31

I have a PostItem object and want my macro to trigger the context menu
- post reply to folder action; and have access to the newly created
PostItem.   The Reply and Forward methods return a MailItem object
that I can manipulate as I want, but there doesn't appear to be any
way to create a PostItem.

Followup. I've found an implementation but it requires embedding a
magic string into my VBA. Is there a less kludgy alternative?

Dim objReply As PostItem
Set objReply = objItem.Actions("Reply to Folder").Execute
 
D

Dmitry Streblechenko

Not unless you explicitly create a new post item in the folder
(Folder.Items.Add) and populate all of its properties appropriately.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
I have a PostItem object and want my macro to trigger the context menu
- post reply to folder action; and have access to the newly created
PostItem. The Reply and Forward methods return a MailItem object
that I can manipulate as I want, but there doesn't appear to be any
way to create a PostItem.

Followup. I've found an implementation but it requires embedding a
magic string into my VBA. Is there a less kludgy alternative?

Dim objReply As PostItem
Set objReply = objItem.Actions("Reply to Folder").Execute
 

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