---
title: Excelマクロを使ってOutlookの特定のメールから特定の情報を抜き出す
description: Excelマクロを使えば、Outlookから特定の情報を抜き出して、Excelへ転記することができます。今回はその方法について取り上げます。
image: https://dx.man-to-man-g.com/hubfs/DX%E3%82%A2%E3%82%A4%E3%82%B3%E3%83%B322101794.jpg
---

[![デジ革ご一緒サービス (2)](https://dx.man-to-man-g.com/hs-fs/hubfs/%E3%83%87%E3%82%B8%E9%9D%A9%E3%81%94%E4%B8%80%E7%B7%92%E3%82%B5%E3%83%BC%E3%83%93%E3%82%B9%20(2).png?width=400&height=100&name=%E3%83%87%E3%82%B8%E9%9D%A9%E3%81%94%E4%B8%80%E7%B7%92%E3%82%B5%E3%83%BC%E3%83%93%E3%82%B9%20(2).png)](https://dx.man-to-man-g.com)

[![MantoManロゴ](https://dx.man-to-man-g.com/hubfs/%E7%94%BB%E5%83%8F3-1.png)](https://dx.man-to-man-g.com)

- [コラムトップ](https://dx.man-to-man-g.com/column)
- [お問い合わせ](https://dx.man-to-man-g.com/form)

[メルマガ登録](https://dx.man-to-man-g.com/form/email)

[![clear-logo](https://dx.man-to-man-g.com/hs-fs/hubfs/raw_assets/public/Marketplace/webdew/Clear_-_Blog_Listing/Images/clear-logo.png?width=94&height=41&name=clear-logo.png "clear-logo")](https://www.webdew.com/clear/home)

- Menu Item 1 
    - Sub-menu Item 1 
          - Another Item
    - Sub-menu Item 2
- Menu Item 2 
    - Yet Another Item
- Menu Item 3
- Menu Item 4

## Page Title Here

Below is a list of all the blog posts you are posting that your  
 visitors might be interested in...

[![DX](https://dx.man-to-man-g.com/hubfs/DX%E3%82%A2%E3%82%A4%E3%82%B3%E3%83%B322101794.jpg)](https://dx.man-to-man-g.com/column/macro)

# Excelマクロを使ってOutlookの特定のメールから特定の情報を抜き出す

![平野　祥史](https://dx.man-to-man-g.com/hubfs/hirano1-2.jpg)

Posted by [平野　祥史](https://dx.man-to-man-g.com/column/author/平野-祥史) on Dec 27, 2024, 6:24:30 PM

 

　RPAを使って繰り返しの業務を自動化できる方法はありますけど、Excelマクロを使って、Excelのリストを自動作成・追記することもできます。  
　学習コストとプログラムを作成する労力を比べて、RPAかExcelマクロのどちらで作ったほうがよいか、運用がしやすいか考えてみてもよいでしょう。

　今回は、Excelマクロを使って、Outlookの特定のメールから情報を抜き出してリストに追記していく方法を取り上げます。

 

## Excelマクロを使ってOutlookの特定のメールから特定の情報を抜き出す

 

　Man to Manは人材サービスの会社です。

　スカウト代行のサービスを行っており、求人媒体からの数多くのメールを受信して、応募状況をExcelにまとめて、求職者の動向を分析しています。

　求人媒体の管理画面は、CSVで情報を取得できない仕組みにしているケースが多く、都度、受信するメールから、各社のスカウトの状況を目視で確認し、Excelの一覧に転記するという作業を行っていました。

　担当者は、Outlookで受信するメールをソートして、該当のメールを見逃さないよう、気を付けているもの、抜け漏れは発生します。決まった作業の繰り返しとは言え、メールを確認し、転記するという作業も、それなりの工数を取られるため、作業を自動化してExcelリストを作成できないか検討しました。

 

 

### ExcelマクロでOutlookから抜き出すメールの内容を決める

 

　リストで集計する項目は、以下の２項目です。

　　１．求人を出している、企業名・求人No・ID

　　２．特定の期間中に「１」の情報を持つ求人のメールが何通配信されたか

 

　求人媒体から来たメールを特定するために、メールの件名、差出人名などで、抜き出すメールの対象を決めます。

　今回は、

１．3/1～25の間に受信  
２．件名「応募フォームからの問い合わせです」  
３．本文に記載されている「No：」から先の情報のみを抜き出す

という条件で、Excelファイルの各列に、メールから抜き出したそれぞれ情報を記述することにしました。

 

※関連コラム

# [ExcelのメールアドレスをPower Automateで抜き出して自動メールを送信する方法](https://dx.man-to-man-g.com/column/-rpa-power-automate-0-0)

 

### **Excelマクロの作成**

 

　マクロのコードをExcelに適用する手順は以下の通りです。

　Excelファイルを開きます。  
\[開発\]タブから\[VBAエディター\]を開きます（\[開発\]タブが表示されていない場合は、Excelのオプションからリボンのカスタマイズを行って表示させてください）。  
\[挿入\] \> \[モジュール\]を選択して新しいモジュールを追加します。  
上記のコードを新しいモジュールに貼り付けます。  
VBAエディターを閉じて、マクロを実行します（\[マクロ\] \> \[マクロの実行\]から選択して実行）。

 

　例えば、受信日日を3/1～25から期間を変更したい場合は、以下の関数を記述して開始・修了の期間を設定します。

 receivedStartDate = DateSerial(2024, 3, 1)  
 receivedEndDate = DateSerial(2024, 3, 25)

 

　既に受信済みのメールから、「企業名、求人No、ID」を抽出して、別の列に記載した、「企業名、求人No、ID」を突き合わせることで、３月中に受信した該当の「企業名、求人No、ID」の件数を算出できます。

使った関数はこちらです。  
=SUMPRODUCT(($C$2:$C$10=TRANSPOSE(G6))\*1)

 

　月別の合計でなく、日別で件数を出したい場合は別の関数を作ることで算出できます。

 

| **知識の取得ではなく、お客様の実際の業務プロセスの効率化を目的としています。** **「事業展開等リスキリング支援コース」に合わせたカリキュラムの提供も可能です。**   **[![Power Automate 研修の詳細はこちら＞](https://hubspot-no-cache-na2-prod.s3.amazonaws.com/cta/default/21779841/407b9f9e-3a9c-4d64-81ee-47375969687c.png)](https://hubspot-cta-redirect-na2-prod.s3.amazonaws.com/cta/redirect/21779841/407b9f9e-3a9c-4d64-81ee-47375969687c)** |
| --- |

 

| **Power Automate リスキリング研修の概要（アーカイブ）**の一部をご覧になりたい方は、こちらのフォームから視聴希望のご連絡をいただきましたら、アーカイブのリンクをメールにてご案内いたします。 **ブラウザから特定のテキスト情報を抽出する方法**について解説しています。 （視聴時間 約８分） |
| --- |

 

### まとめ

　

　Microsoft製品であれば、Excelマクロは、Outlookなど、他の製品と連携して情報を転記して、Excelで集計することにも活用できます。

　Power Automateでも、Outlookから情報を抜き出して、Excelへ転記することはできます。Excelマクロをゼロから作るのは大変ですが、ChatGPT（有料版）等を利用すれば、比較的つくりやすいです。Power Automate のプログラムはChatGPTでは作成できないので、学習コストと運用を考慮して、どちらで作成するか決めるとよいでしょう。

 

| マクロとRPAとの違い RPAの活用パターンを掲載！ |
| --- |

 

 

 

 

 

 

 

 

 

 

 

 

 

 Topics: [RPA](https://dx.man-to-man-g.com/column/tag/rpa), [効率化](https://dx.man-to-man-g.com/column/tag/効率化), [業務効率化](https://dx.man-to-man-g.com/column/tag/業務効率化), [マクロ](https://dx.man-to-man-g.com/column/tag/マクロ), [VBA](https://dx.man-to-man-g.com/column/tag/vba)

- [Tweet](https://twitter.com/share)

### Most Popular

### Post By Topic

- [DX (58)](https://dx.man-to-man-g.com/column/tag/dx)
- [デジタルマーケティング (32)](https://dx.man-to-man-g.com/column/tag/デジタルマーケティング)
- [業務効率化 (25)](https://dx.man-to-man-g.com/column/tag/業務効率化)
- [RPA (24)](https://dx.man-to-man-g.com/column/tag/rpa)
- [PowerAutomate (16)](https://dx.man-to-man-g.com/column/tag/powerautomate)
- [デジタル (16)](https://dx.man-to-man-g.com/column/tag/デジタル)
- [効率化 (16)](https://dx.man-to-man-g.com/column/tag/効率化)
- [メルマガ (15)](https://dx.man-to-man-g.com/column/tag/メルマガ)
- [Power Automate Desktop (14)](https://dx.man-to-man-g.com/column/tag/power-automate-desktop)
- [SNS (14)](https://dx.man-to-man-g.com/column/tag/sns)
- [インサイドセールス (14)](https://dx.man-to-man-g.com/column/tag/インサイドセールス)
- [ウェブマーケティング (13)](https://dx.man-to-man-g.com/column/tag/ウェブマーケティング)
- [CRM (10)](https://dx.man-to-man-g.com/column/tag/crm)
- [MSN (10)](https://dx.man-to-man-g.com/column/tag/msn)
- [Excel (9)](https://dx.man-to-man-g.com/column/tag/excel)
- [MA (9)](https://dx.man-to-man-g.com/column/tag/ma)
- [GoogleAnalytics (7)](https://dx.man-to-man-g.com/column/tag/googleanalytics)
- [Webマーケティング (7)](https://dx.man-to-man-g.com/column/tag/webマーケティング)
- [おすすめ (6)](https://dx.man-to-man-g.com/column/tag/おすすめ)
- [リテラシー (6)](https://dx.man-to-man-g.com/column/tag/リテラシー)
- [ノーコードアプリ (5)](https://dx.man-to-man-g.com/column/tag/ノーコードアプリ)
- [無料 (5)](https://dx.man-to-man-g.com/column/tag/無料)
- [補助金 (5)](https://dx.man-to-man-g.com/column/tag/補助金)
- [開発 (5)](https://dx.man-to-man-g.com/column/tag/開発)
- [AI (4)](https://dx.man-to-man-g.com/column/tag/ai)
- [ノーコード (4)](https://dx.man-to-man-g.com/column/tag/ノーコード)
- [リスキリング (4)](https://dx.man-to-man-g.com/column/tag/リスキリング)
- [人材サービス (4)](https://dx.man-to-man-g.com/column/tag/人材サービス)
- [採用 (4)](https://dx.man-to-man-g.com/column/tag/採用)
- [HubSpot (3)](https://dx.man-to-man-g.com/column/tag/hubspot)
- [PDCA (3)](https://dx.man-to-man-g.com/column/tag/pdca)
- [VBA (3)](https://dx.man-to-man-g.com/column/tag/vba)
- [Web広告 (3)](https://dx.man-to-man-g.com/column/tag/web広告)
- [sharePoint (3)](https://dx.man-to-man-g.com/column/tag/sharepoint)
- [システム (3)](https://dx.man-to-man-g.com/column/tag/システム)
- [セールス (3)](https://dx.man-to-man-g.com/column/tag/セールス)
- [チャットボット (3)](https://dx.man-to-man-g.com/column/tag/チャットボット)
- [ファイル (3)](https://dx.man-to-man-g.com/column/tag/ファイル)
- [マーケティングオートメーション (3)](https://dx.man-to-man-g.com/column/tag/マーケティングオートメーション)
- [中小企業 (3)](https://dx.man-to-man-g.com/column/tag/中小企業)
- [広告運用 (3)](https://dx.man-to-man-g.com/column/tag/広告運用)
- [研修 (3)](https://dx.man-to-man-g.com/column/tag/研修)
- [Outlook (2)](https://dx.man-to-man-g.com/column/tag/outlook)
- [お薦め (2)](https://dx.man-to-man-g.com/column/tag/お薦め)
- [ナーチャリング (2)](https://dx.man-to-man-g.com/column/tag/ナーチャリング)
- [マクロ (2)](https://dx.man-to-man-g.com/column/tag/マクロ)
- [マーケティング (2)](https://dx.man-to-man-g.com/column/tag/マーケティング)
- [初心者 (2)](https://dx.man-to-man-g.com/column/tag/初心者)
- [在庫管理 (2)](https://dx.man-to-man-g.com/column/tag/在庫管理)
- [学習方法 (2)](https://dx.man-to-man-g.com/column/tag/学習方法)
- [戦略 (2)](https://dx.man-to-man-g.com/column/tag/戦略)
- [未経験 (2)](https://dx.man-to-man-g.com/column/tag/未経験)
- [本 (2)](https://dx.man-to-man-g.com/column/tag/本)
- [業務効率 (2)](https://dx.man-to-man-g.com/column/tag/業務効率)
- [活用事例 (2)](https://dx.man-to-man-g.com/column/tag/活用事例)
- [転職 (2)](https://dx.man-to-man-g.com/column/tag/転職)
- [B to B (1)](https://dx.man-to-man-g.com/column/tag/b-to-b)
- [CTA (1)](https://dx.man-to-man-g.com/column/tag/cta)
- [Facebook広告 (1)](https://dx.man-to-man-g.com/column/tag/facebook広告)
- [GPT (1)](https://dx.man-to-man-g.com/column/tag/gpt)
- [Googleタグマネージャー (1)](https://dx.man-to-man-g.com/column/tag/googleタグマネージャー)
- [ITスキル (1)](https://dx.man-to-man-g.com/column/tag/itスキル)
- [ITパスポート (1)](https://dx.man-to-man-g.com/column/tag/itパスポート)
- [Instagram (1)](https://dx.man-to-man-g.com/column/tag/instagram)
- [Meta広告 (1)](https://dx.man-to-man-g.com/column/tag/meta広告)
- [RFID (1)](https://dx.man-to-man-g.com/column/tag/rfid)
- [SEO (1)](https://dx.man-to-man-g.com/column/tag/seo)
- [Webマーケティングスクール (1)](https://dx.man-to-man-g.com/column/tag/webマーケティングスクール)
- [はじめの一歩 (1)](https://dx.man-to-man-g.com/column/tag/はじめの一歩)
- [インハウス化 (1)](https://dx.man-to-man-g.com/column/tag/インハウス化)
- [オプトアウト (1)](https://dx.man-to-man-g.com/column/tag/オプトアウト)
- [クラウド (1)](https://dx.man-to-man-g.com/column/tag/クラウド)
- [クリック率 (1)](https://dx.man-to-man-g.com/column/tag/クリック率)
- [コスト削減 (1)](https://dx.man-to-man-g.com/column/tag/コスト削減)
- [コンテンツ (1)](https://dx.man-to-man-g.com/column/tag/コンテンツ)
- [スキル (1)](https://dx.man-to-man-g.com/column/tag/スキル)
- [テレアポ (1)](https://dx.man-to-man-g.com/column/tag/テレアポ)
- [ブランディング (1)](https://dx.man-to-man-g.com/column/tag/ブランディング)
- [ポートフォリオ (1)](https://dx.man-to-man-g.com/column/tag/ポートフォリオ)
- [メール (1)](https://dx.man-to-man-g.com/column/tag/メール)
- [メールマーケティング (1)](https://dx.man-to-man-g.com/column/tag/メールマーケティング)
- [リスティング広告 (1)](https://dx.man-to-man-g.com/column/tag/リスティング広告)
- [ワンストップ (1)](https://dx.man-to-man-g.com/column/tag/ワンストップ)
- [分析 (1)](https://dx.man-to-man-g.com/column/tag/分析)
- [副業 (1)](https://dx.man-to-man-g.com/column/tag/副業)
- [効果 (1)](https://dx.man-to-man-g.com/column/tag/効果)
- [動画広告 (1)](https://dx.man-to-man-g.com/column/tag/動画広告)
- [国家資格 (1)](https://dx.man-to-man-g.com/column/tag/国家資格)
- [指名検索 (1)](https://dx.man-to-man-g.com/column/tag/指名検索)
- [文字数 (1)](https://dx.man-to-man-g.com/column/tag/文字数)
- [書籍 (1)](https://dx.man-to-man-g.com/column/tag/書籍)
- [特徴 (1)](https://dx.man-to-man-g.com/column/tag/特徴)
- [税制 (1)](https://dx.man-to-man-g.com/column/tag/税制)
- [節税 (1)](https://dx.man-to-man-g.com/column/tag/節税)
- [経営者 (1)](https://dx.man-to-man-g.com/column/tag/経営者)
- [自動化 (1)](https://dx.man-to-man-g.com/column/tag/自動化)
- [製造業 (1)](https://dx.man-to-man-g.com/column/tag/製造業)
- [見込み顧客 (1)](https://dx.man-to-man-g.com/column/tag/見込み顧客)
- [開封率 (1)](https://dx.man-to-man-g.com/column/tag/開封率)

全て表示

[![Man to Manロゴ](https://dx.man-to-man-g.com/hs-fs/hubfs/MtM_logo002_%5B2021%5D.png?width=1216&height=161&name=MtM_logo002_%5B2021%5D.png "Man to Manロゴ")](http://man-to-man-g.com)

 

〒460‐0007　愛知県名古屋市中区新栄1丁目7番7号　RTセンターステージビル

<https://twitter.com/MtM_dx_> <https://www.facebook.com/MtM.Digital.Promotion/?ref=pages_you_manage> <https://www.youtube.com/channel/UCSIELzuu3lBBpGw904elC0Q>

- [運営会社](https://www.man-to-man-g.com/)

Copyright © 2022 Company, Inc. All Rights Reserved.