Moving Emails to specific Outlook folders Using Access VBA - vba

I'm using Microsoft Office 2013 to set up an access database linked to an inbox in outlook. I'm having no issues setting up a linked table and manipulating the data within access.
What I want to do is move the email from one outlook folder/subfolder to another outlook folder/subfolder with VBA code within Access. In other words, I want to click on a button within Access and activate VBA coding that moves the email within Outlook.
Any tips on how to get started will be greatly appreciated.

Use MailItem.Move and pass the target MAPIFolder object as the parameter.

Related

Selected CC address move to Selected folder in office 365 outlook

I want move selected cc address to selected folder in outlook office 365 (Using rule or VBA script)
Ex- Received one email from "abc#zyz.com" and in this mail "xyz#abc.com" is in CC.
So i want move xyz#abc.com to "Purchase-Dept" folder.
First of all, Outlook rules and VBA macros can be run in the Outlook desktop only.
You can set up a rule in Outlook or create a VBA macro. Your VBA macro can also be called from a rule if it triggers and should look in the following way:
Public Sub Test(mail as MailItem)
' here your actions
End Sub
Also you can implement the required functionality in VBA only. For that you need to declare a method where you could check the To and Cc properties of Outlook items. But better yet is to use the Recipients property for checking such fields. Be also aware that Outlook folders may contain different kind of items, so I'd recommend checking the item's MessageClass property which returns or sets a string representing the message class for the Outlook item, see Item Types and Message Classes for more information about their correspondence.

How to interact with the 'Microsoft Dynamics Office Add-in' by VBA

In order to set up an automation of data refresh task, I would like to use VBA to ask the add-in "Microsoft Dynamics Office Add-in", to refresh and then refresh the power query connections to this file, and then move to the next one.\
I have tried to record a macro but VBA won't detect the button within the add-in pane that I clicked;I have also tried to reference to the add-in, however this add-in wasn't showing up, neither in the project explorer nor the references list.\
Is there a way to create VBA against this add-in? I have read the article at:
https://www.exceltip.com/custom-functions/how-to-use-your-excel-add-in-functions-in-vba.html
about how you set a reference but I could not even spot the add-in at the first step.
If it is not possible to get access to this add-in via VBA, is there any other methods to do for such automation task?\
Thanks!

Tracking open Outlook 2010 emails

I'm looking for a programmatic way (eg: using VBA) to write the Subject texts of emails which are open, or otherwise export opened emails to a file system folder.
Trap the Application.Inspectors.NewInspector event an read the Inspector.CurrenmtItem.Subject property. Reading pane needs to be handled separately.

VB Script for Outlook to automatically copy the file contents to a designated folder with a particular sender or based on Subject?

I am a newbie to VB Scripting, what I have been trying to do is as soon as i receive a mail in Outlook from a particular sender or a particular message in the Subject line, I should copy the contents of the specified File location to other specified location
Is this feasible?
Yes, it can be implemented using VBA macros or creating an Outlook add-in. You can handle the NewMailEx event of the Application class where you can check out the Subject property and do whatever you need. See Getting Started with VBA in Outlook 2010 in MSDN for more information.

SharePoint 2010 Email Outlook File to Library with attachments embedded

The only way I have found to retain attachments with an email from Outlook to SharePoint is to do a save as .msg and drag and drop into the SharePoint library.
I would like to set the library to receive email and retain the attachment as part of the email. I don't want the attachments to separate from the email when they arrive in the library.
Is there an add-in to Outlook or a fix in SharePoint 2010??????
You have two options:
1. Stick with the SharePoint options like adding attachments to the library or to a sub folder of the library based on subject or sender.
2. Write a custom email event handler. Here is an example for 2007, but it should work in 2010 as well: http://blogs.msdn.com/b/malag/archive/2009/05/13/attachments-disappear-with-custom-email-event-handler.aspx
marco
Marco, when I created the EventHandler to try and retain the message and attachment when activated it still came through as it was before by separating the message and attachment in two different files
Yes there are add-ins. I have used some 3rd Party tools for Outlook and SharePoint:
Scinaptic's OnePlaceMail
Colligo
Macroview
They are all good.