Outlook is great with rules for many different conditions but often lacking in dealing with attachments. Using VBA for Outlook you can take emails with attachments, rename the files, move based on type, or save the attached files automatically and remove from the email to save on mailbox size.
To illustrate a basic operation of this we have an example of a rule to move any incoming file that has a type of .zip to a junk folder. Why would you want to move .zip files? Emailing files with a type of.zip is an often used phishing attack to encrypt your files.
Sub MoveZipToJunk(Item As Outlook.MailItem)
Dim myAtt As Outlook.Attachment
For Each myAtt In Item.Attachments
If Right(LCase(myAtt.Filename), 4) = ".zip" Then
Item.Move Session.GetDefaultFolder(olFolderJunk)
Exit For
End If
Next
Set myAtt = Nothing
End Sub
Note: If you have a mobile device, use the web or a second machine to also connect to your Outlook/Exchange account the rules will not work, as the rule will only work on the machine on which you create it and other devices and connections can effectively bypass the rule by processing the email to the inbox therefor bypassing the action that starts the rule.
If the retrieve the file name, for the item, make lowercase (LCase) and then retrieve the 4 characters far right (Right) hand side of the filename. If they are equal to “.zip” Then process inner code.
Our experienced instructors have put together some of their most useful keyboard shortcuts into these very easy to use cheat sheets.
Fill out our short questionnaire to establish your skill level with Microsoft Excel.
Very short questionnaire to establish your skill level with Microsoft Word.
Short questionnaire to establish your skill level with Microsoft PowerPoint.
Our experienced instructors have put together some of their most useful keyboard shortcuts into these very easy to use cheat hseets.
Interact with our experienced and certified trainers during our live online classes.
If the situation arises where training delegates fall ill or become unavailable, no need to worry, they can resit the course for free. Our Training Insurance covers you to sit the same public class within 6 months, if the case arises.
Classes are recorded so that you don't miss a thing. You can go over the class again in order to enforce learning for up to 6 months after the training course has ended.
Instructor was very knowledgeable, was easy to understand and answered all of the questions I came in with.
Nexus Human class
Explained very well. So easy to learn from. Very engaging. Broke things down into simple terms. I was so pleasantly surprised by how much learned and how much i enjoyed it.
Nexus Human student
Sharon was very approachable and explained things very well
Nexus Human Excel class
A brilliant tutor - instruction carried out in understandable lingo and at a pace that could be followed.
Nexus Human student
The patience that Sharon had with everyone was excellent. The pace was also perfect. I would highly recommend this course to my colleagues.
Nexus Human student