는
Option Explicit Sub Recall() Dim SendItem As Object Dim olItem As
Outlook.MailItem Dim olInsp As Outlook.Inspector
'// Selected item in Sent Items folder Set SendItem =
ActiveExplorer.Selection.Item(1)
If TypeName(SendItem) = "MailItem" Then
Set olItem = SendItem
Set olInsp = olItem.GetInspector
'// Execute Recall command button
With olInsp
.Display
.CommandBars.FindControl(, 2511).Execute
.Close olDiscard
End With
최종면 최종 하위
감가 상각 및 IRibbonExtensibility 함께 ///// 내 코드는 다음과 같습니다.
Outlook.MailItem MailItemRecall = (MailItem)selObject;
if (MailItemRecall != null)
{
Outlook.Action recallaction = selObject.Actions.Add();
recallaction.Name = "Recall This Message";
recallaction.MessageClass = "IPM.Outlook.Recall";
recallaction.ResponseStyle = OlActionResponseStyle.olSend;
recallaction.CopyLike = OlActionCopyLike.olReplyFolder;
recallaction.Execute();
}