メインコンテンツへスキップ

Outlookで送信者ドメインで並べ替えてグループ化する方法は?

通常、Microsoft Outlookでは、送信者、カテゴリ、件名、サイズなどごとにすべての電子メールメッセージを簡単に整理できます。 ただし、電子メールメッセージの送信者ドメインフィールドがまったくないため、送信者ドメインで電子メールメッセージを並べ替えたりグループ化したりすることは不可能のようです。 ここでは、電子メールメッセージのドメイン列を追加し、Outlookで送信者ドメインごとに電子メールメッセージを簡単に並べ替えてグループ化するのに役立つVBAコードを紹介します。

Office タブ - Microsoft Office でタブによる編集と参照を有効にし、仕事をスムーズにします
Kutools for Outlook - 100 以上の高度な機能で Outlook を強化し、優れた効率を実現します
これらの高度な機能を使用して、Outlook 2021 ~ 2010 または Outlook 365 を強化します。 包括的な 60 日間の無料トライアルを利用して、メール エクスペリエンスを向上させてください。

Microsoft Outlook 2013および2010で送信者ドメイン別に電子メールメッセージを並べ替えてグループ化するには、次のようにします。

手順1:すべてのメールメッセージを送信者ドメインで並べ替えるメールフォルダを開きます。

ステップ2:クリックして閲覧ウィンドウをオフにします 読書ペイン > オフ 詳しく見る タブには何も表示されないことに注意してください。

ステップ3:先に進み、 列の追加 詳しく見る タブには何も表示されないことに注意してください。

手順3:[列の表示]ダイアログボックスで、[ 新しい列

手順4:[新しい列]ダイアログボックスで、次のように入力します ドメイン [名前]ボックスに入力し、 テキスト 両方で選択 ボックスと フォーマット ボックス、最後にクリックします OK

手順5:[列の表示]ダイアログボックスに戻り、[ ドメイン [これらの列をこの順序で表示する]ボックスで、下に移動します アイテムをクリックし、 OK

ステップ6:開いているメールフォルダに戻り、を押してすべてのメールメッセージを選択します Ctrlキー + A キーを同時に押します。

ステップ7: 他の + F11 その間にキーを押して、Microsoft Visual Basic forApplicationsウィンドウを開きます。 次に、をクリックします インセット > モジュール、次に次のVBAコードをモジュールに貼り付けます。

VBA:送信者ドメインで並べ替えてグループ化

Sub ListSelectionDomain()
Dim aObj As Object
Dim oProp As Outlook.UserProperty
Dim sDomain
On Error Resume Next
For Each aObj In Application.ActiveExplorer.Selection
Set oMail = aObj
sDomain = Right(oMail.SenderEmailAddress, Len(oMail.SenderEmailAddress) - InStr(1, oMail.SenderEmailAddress, "@"))
Set oProp = oMail.UserProperties.Add("Domain", olText, True)
oProp.Value = sDomain
oMail.Save
Err.Clear
Next
End Sub

ステップ8:を押してこのVBAコードを実行します F5 キーまたは ラン ツールバーのボタン。

ステップ9:これで、各送信者のドメインが抽出され、[ドメイン]列に入力されます。

A. メールメッセージを送信者ドメインで並べ替えるには、の列ヘッダーをクリックするだけです。 ドメイン すべての電子メールメッセージの上部。

B. メールメッセージを送信者ドメインごとにグループ化するには、の列ヘッダーを右クリックします ドメインを選択し、 このフィールドでグループ化 ドロップダウンリストから。 以下のスクリーンショットを参照してください。

ノート:

(1)このVBAコードはOutlook 2013および2010では正常に機能しますが、Outlook2007では機能しません。
(2)カスタムビューを簡単に保存できます ビュー設定を保存してOutlookの他のフォルダにコピーするにはどうすればよいですか?


矢印青い右バブル関連記事

Outlookのメールリストで送信者のドメインを表示するにはどうすればよいですか?


最高のオフィス生産性向上ツール

Kutools for Outlook - Outlook を強化する 100 以上の強力な機能

🤖 AIメールアシスタント: AI の魔法を備えたインスタント プロのメール - ワンクリックで天才的な返信、完璧な口調、多言語の習得。メールを簡単に変革しましょう! ...

📧 自動メール: 不在時 (POP および IMAP で利用可能)  /  メール送信のスケジュール設定  /  メール送信時のルールによる自動CC/BCC  /  自動転送 (高度なルール)   /  あいさつを自動追加   /  複数受信者の電子メールを個別のメッセージに自動的に分割する ...

📨 電子メール管理: メールを簡単に思い出す  /  件名などで詐欺メールをブロック  /  重複するメールを削除する  /  高度な検索  /  フォルダーを統合する ...

📁 アタッチメント プロバッチ保存  /  バッチデタッチ  /  バッチ圧縮  /  自動保存   /  自動デタッチ  /  自動圧縮 ...

🌟 インターフェースマジック: 😊もっと可愛くてクールな絵文字   /  タブ付きビューで Outlook の生産性を向上  /  Outlook を閉じる代わりに最小化する ...

???? ワンクリックの驚異: 受信した添付ファイルをすべてに返信する  /   フィッシングメール対策  /  🕘送信者のタイムゾーンを表示 ...

👩🏼‍🤝‍👩🏻 連絡先とカレンダー: 選択したメールから連絡先を一括追加  /  連絡先グループを個別のグループに分割する  /  誕生日のリマインダーを削除する ...

オーバー 100の特長 あなたの探索をお待ちしています! ここをクリックして詳細をご覧ください。

 

 

Comments (8)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Thanks a lot for this article. It took ages to populate the Domain field values for around 10000 mails, in Outlook 2013. The sadder thing is that it does not sort the mails on the Domain field, either descending or ascending. I don't know what is wrong, some update in Outlook disables this, or because the number of mails are huge. The Domain values are displayed, but not sortable or groupable. Kindly help me fix this, thanks.
This comment was minimized by the moderator on the site
I'd like to do the same thing, but for the eMail Address. What values should be adjusted in the above code?
This comment was minimized by the moderator on the site
Getting an error in Outlook 365 (1705) "You cannot sort by this field."
This comment was minimized by the moderator on the site
thanks for your effort, however, domain field does not behave like From field. When you group by domain and sort by another field, domain field disappears. any workarounds ?
This comment was minimized by the moderator on the site
Hi, In the new Outlook 2016 when you sort inbox by sender it then creates headers. I absolutely hate it. How do i remove the useless headers? It never used to happen before. Thanks, Barbs
This comment was minimized by the moderator on the site
Thanks for this, just tried it out in Outlook 2016 and works a treat. Now the next thing which might not be possible but is there a way to then sort the group by domain messages based on the group by count rather than alphabetically based on the domain text?
This comment was minimized by the moderator on the site
[quote]Thanks for this, just tried it out in Outlook 2016 and works a treat. Now the next thing which might not be possible but is there a way to then sort the group by domain messages based on the group by count rather than alphabetically based on the domain text?By Justin[/quote] I can't find the option to add a column in Office 2016 for Mac - Office 365. Any idea? Thank you.
This comment was minimized by the moderator on the site
Works perfect! Many Thanks!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations