I am looking for vba code to forward attachments in an email received to be forwarded to a particular email id.
I can set rule if the attachment count is one however I need to send each attachments in the email individually to the email id.
Thank you
Thank You, Diane
I used restrict to limit the results to the given conversation id and was able to do it as below.
Set sitems = Ns.GetDefaultFolder(olFolderInbox).Items.Restrict("[ConversationTopic]='" & UMail.ConversationTopic & "'")
I am trying to move emails with same conversation id to a folder.
Right now I am using loop to search all the emails to look for conversation ID and move the email However the Inbox has more than 4000 emails in it hence it is taking time as I am trying to move the emails in Inbox in the...
I solved the issue, actually the categories were getting set for emails in Sent Items and not in the inbox. I removed the one which sets the category for current message and used .find to find the email I am replying with the subject and set the category to the email in Inbox.
Thank you
Hi Diane,
Please find below the code I am using to set the categories.
Thank you for your help.
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
If EmailDetails.Visible = False Then
clrform
End If
Flag = True
Dim strSubject As String
Dim tempMsg As...
I tested the code again and found that when the email is replied within the reading pane it categories the email but when I open the email in a new window it does not categories it.
I will send you relevant code in sometime.
Thank you.
It gives no errors.
I check the code using the step mode, all form values shows but no categories is set for the email.
However sometimes if I run the code in step mode it sets the category but when I run the code it gives blank.
I tried using sleep after the first line of code but no luck.
I am trying to set categories to outgoing email in Outlook 2016 based on certain combo box values from the end user.
I am using the below code to add category to outgoing email within the Item send event.
msg.Categories = msg.Categories & "," & EmailDetails.cmbresponsetype.Value & "-" &...
Thank you, Diane.
Yes I was trying to upload the data within the Itemsend event of the email.
I will try adding watch to the sent folder and update the database post sending the email.
I am trying a track emails in Outlook 2016 using conversationID since the email subject will not change.
I am able to get conversationID of all received email in Outlook however when I send a new email I get blank conversation id.
I tried saving the email before sending to get the info since...
Hi,
How do I check if I have received reply of an email sent by me in outlook.
I tried checking with EntyID and the entryid for first sent email is different from the reply received for the same email.
Thanks,
Iqbal
I am using the below code to set the default folder as Inbox.
Set gnspNameSpace = Outlook.GetNamespace("MAPI") 'Outlook Object
Set fldInbox = gnspNameSpace.Folders(GenericFolder_Root).Folders("Inbox")
Set myInboxMailItem = fldInbox.Items
Hence all the incoming emails in Inbox are capture...
I am using the Appilcation_NewMailEx event to check for any new email arriving in my outlook. My Outlook is configured with my personal Id and a shared mailbox.
When I use Application_NewMailEx event it captures any email coming to my personal ID and do not capture any incoming email for the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.