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

Outlookで名前でフォルダを見つける方法は?

たとえば、Outlookで多数の電子メールフォルダを作成した場合、指定した個人用フォルダを開く必要がある場合、その指定したフォルダが表示されるまで複数のフォルダを展開する必要があります。 指定した個人用フォルダを開くだけで、複数のフォルダをXNUMXつずつ展開するのは面倒です。 実は、フォルダ名を覚えていれば、すべてが簡単になります。 このチュートリアルでは、フォルダーをXNUMXつずつ展開してフォルダーを検索するのではなく、Outlookで名前でフォルダーを検索する方法を紹介します。

VBAコードを使用してOutlookで名前でフォルダを検索する

Outlook用KutoolsによってOutlookのアカウント間で名前でフォルダを検索良いアイデア3


矢印青い右バブル VBAコードを使用してOutlookで名前でフォルダを検索する

次のVBAコードを使用すると、指定したフォルダーをその名前で簡単に見つけることができます。

Note:このVBAコードを使用するには、フォルダ名を覚えておく必要があります。

1。 プレス 他の + F11 キーボードのキーを押して アプリケーション向け Microsoft Visual Basic 窓。

2.次に、 Project1 > MicrosoftOutlookオブジェクト > このOutlookSession を開く Project1 – ThisOutlookSession 窓。 スクリーンショットを参照してください:

3.次のVBAコードをコピーしてProject1–ThisOutlookSessionウィンドウに貼り付けます。

VBA:名前でフォルダを検索

Sub FindFolderByName()
    Dim Name As String
    Dim FoundFolder As Folder
    
    Name = InputBox("Find Name:", "Search Folder")
    If Len(Trim$(Name)) = 0 Then Exit Sub
    
    Set FoundFouder = FindInFolders(Application.Session.Folders, Name)
    
  If Not FoundFouder Is Nothing Then
    If MsgBox("Activate Folder: " & vbCrLf & FoundFouder.FolderPath, vbQuestion Or vbYesNo) = vbYes Then
      Set Application.ActiveExplorer.CurrentFolder = FoundFouder
    End If
  Else
    MsgBox "Not Found", vbInformation
  End If
End Sub
Function FindInFolders(TheFolders As Outlook.Folders, Name As String)
  Dim SubFolder As Outlook.MAPIFolder
  
  On Error Resume Next
  
  Set FindInFolders = Nothing
  
  For Each SubFolder In TheFolders
    If LCase(SubFolder.Name) Like LCase(Name) Then
      Set FindInFolders = SubFolder
      Exit For
    Else
      Set FindInFolders = FindInFolders(SubFolder.Folders, Name)
      If Not FindInFolders Is Nothing Then Exit For
    End If
  Next
End Function 

4.次にを押します F5 キーボードのキーを押して、VBAコードを実行します。

5。 の中に マクロ ダイアログボックスで ラン

6.ポップアップで 検索フォルダ ダイアログボックスで、テキストボックスにフォルダ名を入力し、[ OK ボタン。 スクリーンショットを参照してください:

7.次に、 Microsoft Outlookの ダイアログボックスが表示され、目的のフォルダのパスが表示されたら、[ 有り

8.指定したメールフォルダがすぐに開きます。

Note:このVBAコードは、Outlook 2007、2010、および2013に適用できます。


矢印青い右バブル Outlook用KutoolsによってOutlookのアカウント間で名前でフォルダを検索

VBAが苦手な方は、ぜひお試しください Kutools for Outlook's へ行きます 名前または特定の文字でフォルダを検索および検索し、そのフォルダに直接移動できるユーティリティ。

Kutools for Outlook , 含まれています Microsoft Outlook 2016、2013、2010、およびOffice365の強力な機能とツール。

無料インストール Outlook用Kutoolsを実行し、次の手順を実行します。

1。 クリック クツールズプラス > へ行きます.
doc名前でフォルダを検索5

2。 の中に へ行きます ダイアログで、検索バーにフォルダ名または特定の文字を入力すると、相対フォルダが一覧表示されます。
doc名前でフォルダを検索6

3.移動したいフォルダ名をダブルクリックして開くと、フォルダが開きます。
doc名前でフォルダを検索7


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

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

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

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

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

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

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

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

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

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

 

 

Comments (7)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hi, 6 years later but have same issues as raised by the others. I once had this code but sadly lost it. Any ideas (i will try AI)
This comment was minimized by the moderator on the site
It looks great but I'm looking more folder with similar name....
This comment was minimized by the moderator on the site
I am currently working with Outlook 2013, and while this tool is wonderfully helpful, I'm in the same boat as Matt and Richard. I would like to be able to somehow go through multiple folders with the same name. I would also like to be able to do this: if I have multiple folders with dates, 2012,2013,2014 for example, I would like to be able to put in 20* or 20?? and then be prompted to view any of the aforementioned folders, instead of just defaulting to the first one it finds.
This comment was minimized by the moderator on the site
The line "Function FindInFolders(TheFolders As Outlook.Folders, Name As String)" is throwing a compile error message - User-defined type not defined
This comment was minimized by the moderator on the site
the line "Function FindInFolders(TheFolders As Outlook.Folders, Name As String)" is throwing a Compile error message: User-defined type not defined
This comment was minimized by the moderator on the site
Just like Matt wrote, I was also looking for this. The way the code operates is that it will open the first folder it finds with the name to search for. Is it possible to adjust the code so it will find multiple instances?
This comment was minimized by the moderator on the site
Is there a way to add folder iteration to the above code. Say the user has multiple folders named Employee, is it possible for it to go through a loop to find all instances and allow user to select appropriate folder?
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations