Im struggling to make a macro that adds a specific text, lets sat "CRM ", plus then content of my clipboard, at the end of the subject of all messages I have selected. This following works great, but is missing the clipboard paste, as the "pastedtext" should be the actual clipboard data.
Sub Renamemails()
Dim ex As Explorer
Dim mail As MailItem
Dim strTemp As String
Set ex = Application.ActiveExplorer
For Each mail In ex.Selection
strTemp = mail.Subject & " CRM " & "pastedtext"
mail.Subject = strTemp
mail.Save
Next mail
End Sub
It seems there is no simple code just to paste in Outlook, at least i havent been able to find it, so any help get the the actual clipboard text into the subject would be highly appreciated
Thanks in advance
/Imbizile
Sub Renamemails()
Dim ex As Explorer
Dim mail As MailItem
Dim strTemp As String
Set ex = Application.ActiveExplorer
For Each mail In ex.Selection
strTemp = mail.Subject & " CRM " & "pastedtext"
mail.Subject = strTemp
mail.Save
Next mail
End Sub
It seems there is no simple code just to paste in Outlook, at least i havent been able to find it, so any help get the the actual clipboard text into the subject would be highly appreciated
Thanks in advance
/Imbizile