How to extract address emails from outlook mail
There are a few ways to extract email addresses from Outlook mail:
Method 1: Using Outlook's built-in feature
- Open Outlook and go to the "Mail" folder.
- Select all the emails you want to extract addresses from by pressing Ctrl+A.
- Right-click on the selected emails and choose "Export to a file".
- In the "Export to a file" dialog box, select "Comma Separated Values (CSV)" as the file format.
- Choose a location to save the file and click "Export".
- Open the exported CSV file in a text editor or spreadsheet program like Microsoft Excel.
- You can now extract the email addresses from the CSV file.
Method 2: Using VBA Macro
-
Open Outlook and go to the "Developer" tab (if you don't see it, go to "File" > "Options" > "Customize Ribbon" and check the box next to "Developer").
-
Click on the "Visual Basic" button in the "Developer" tab.
-
In the Visual Basic Editor, click "Insert" > "Module" to insert a new module.
-
Paste the following code into the module:
Sub ExtractEmails() Dim olApp As New Outlook.Application Dim olNamespace As Outlook.Namespace Dim olFolder As MAPIFolder Dim olItems As Items Dim i As Integer Set olNamespace = olApp.GetNamespace("MAPI") Set olFolder = olNamespace.GetDefaultFolder(olFolderInbox) Set olItems = olFolder.Items For i = 1 To olItems.Count If olItems(i).Class = olMail Then Dim email As String email = olItems(i).To ' Do something with the email address, e.g. add it to a list End If Next i Set olItems = Nothing Set olFolder = Nothing Set olNamespace = Nothing Set olApp = Nothing End Sub
-
Click "Run" to execute the macro.
-
The macro will extract the email addresses from the selected emails and display them in a list.
Method 3: Using a third-party add-in
There are several third-party add-ins available that can help you extract email addresses from Outlook mail, such as:
- Email Extractor for Outlook
- Outlook Email Extractor
- Email Address Extractor
These add-ins can be downloaded and installed from the internet, and then used to extract email addresses from your Outlook mail.