I have created a button on the toolbar in outlook which when click runs some code to change the subject line on the email to say that I am dealing with the request.
I would like to also add on the macro to automatically transfer the email to a specified folder called 'completed requests'
Therefore when the button is clicked it will change the subject field to say 'name dealing with this request' then automatically move the email to a folder called 'completed requests'
Can this be done.
This is my code below
Sub ClosedByMe()
On Error Resume Next
Dim strMessage As String
strMessage = "Closed by Marc " & Now() & " - "
Set msg = Application.ActiveInspector.CurrentItem
msg.Subject = strMessage & msg.Subject
End Sub
I would like to also add on the macro to automatically transfer the email to a specified folder called 'completed requests'
Therefore when the button is clicked it will change the subject field to say 'name dealing with this request' then automatically move the email to a folder called 'completed requests'
Can this be done.
This is my code below
Sub ClosedByMe()
On Error Resume Next
Dim strMessage As String
strMessage = "Closed by Marc " & Now() & " - "
Set msg = Application.ActiveInspector.CurrentItem
msg.Subject = strMessage & msg.Subject
End Sub