I have a feeling this isn't doable (nor is strictly a VBA question).
I have a rule that will "execute after send" anything that is sent to my cell phone's email (SMS).
The rule only has "Move a Copy", not "Move".
I have a folder under Sent Items that I want to hold only those emails. They are still technically under "Sent Items", just moved to a folder nested within.
I am hoping that threre may be a way to enhance this:
Sub RunToCellRule()
Dim st As Outlook.Store, myRules As Outlook.Rules, rl As Outlook.Rule, runrule$, rulename$
rulename = "To Cell"
Set st = Application.Session.DefaultStore
Set myRules = st.GetRules
For Each rl In myRules
If rl.RuleType = olRuleSend Then
If rl.Name = rulename Then
rl.Execute ShowProgress:=True, Folder:=st.GetRootFolder.Folders("Sent Items"), IncludeSubfolders:=False, RuleExecuteOption:=olRuleExecuteAllMessages
runrule = rl.Name
End If
End If
Next
rulename = "Rule executed: [" & runrule & "]"
MsgBox rulename, vbInformation, "Macro: RunToCellRule"
Set rl = Nothing
Set st = Nothing
Set myRules = Nothing
End Sub
If "Move" isn't an option, once a "Copy" is made, maybe "Delete" it from sent root folder?