triggering the "post reply to folder" action

  • Thread starter Thread starter danst31
  • Start date Start date
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.
 
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
 
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
 
Back
Top