按月和按年计算邮箱中所有文件夹的电子邮件数

时间:2022-08-25 11:05:13

I have a mailbox in Outlook. For example ("some_name@a_web_address.com").

我在Outlook中有一个邮箱。例如(“some_name@a_web_address.com”)。

The mailbox has many folders and subfolders that contain emails (7 main folders and for example, 1 main folder has 97 subfolders with subfolders).

邮箱有许多文件夹和子文件夹包含电子邮件(7个主文件夹,例如,1个主文件夹有97个子文件夹和子文件夹)。

This setup is not ideal, I understand. But I am looking for a way to count the emails in this mailbox by month and year. For example, a grand total of 500 emails in "some_name@a_web_address.com" for January, 2015. I hope that makes sense.

我明白这种设置并不理想。但我正在寻找一种方法来按月和年计算此邮箱中的电子邮件。例如,2015年1月在“some_name@a_web_address.com”*发送了500封电子邮件。我希望这是有道理的。

Is this possible? I am able to create a count for 1 folder at a time. But with so many folders, it is very time consuming. I appreciate any assistance. Many Thanks - Jwal45

这可能吗?我能够一次为1个文件夹创建一个计数。但是有这么多文件夹,这是非常耗时的。我感谢任何帮助。非常感谢 - Jwal45

1 个解决方案

#1


0  

The most easiest way is to create Search folders in Outlook. See Create a Search Folder for more information.

最简单的方法是在Outlook中创建搜索文件夹。有关更多信息,请参阅创建搜索文件夹。

Also you may consider developing a VBA macro or add-in where you can filter items according to your conditons. The Find/FindNext or Restrict methods of the Items class from the Outlook object model do the trick.

您也可以考虑开发一个VBA宏或加载项,您可以根据自己的条件过滤项目。 Outlook对象模型中的Items类的Find / FindNext或Restrict方法可以解决问题。

But the most powerful and reliable search is using the AdvancedSearch method of the Application class. See Advanced search in Outlook programmatically: C#, VB.NET for more information.

但最强大和最可靠的搜索是使用Application类的AdvancedSearch方法。有关详细信息,请参阅以编程方式在Outlook中进行高级搜索:C#,VB.NET。

Finally, you may find the Getting Started with VBA in Outlook 2010 article in MSDN helpful.

最后,您可能会发现MSDN中的VBA入门文章在MSDN中很有帮助。

#1


0  

The most easiest way is to create Search folders in Outlook. See Create a Search Folder for more information.

最简单的方法是在Outlook中创建搜索文件夹。有关更多信息,请参阅创建搜索文件夹。

Also you may consider developing a VBA macro or add-in where you can filter items according to your conditons. The Find/FindNext or Restrict methods of the Items class from the Outlook object model do the trick.

您也可以考虑开发一个VBA宏或加载项,您可以根据自己的条件过滤项目。 Outlook对象模型中的Items类的Find / FindNext或Restrict方法可以解决问题。

But the most powerful and reliable search is using the AdvancedSearch method of the Application class. See Advanced search in Outlook programmatically: C#, VB.NET for more information.

但最强大和最可靠的搜索是使用Application类的AdvancedSearch方法。有关详细信息,请参阅以编程方式在Outlook中进行高级搜索:C#,VB.NET。

Finally, you may find the Getting Started with VBA in Outlook 2010 article in MSDN helpful.

最后,您可能会发现MSDN中的VBA入门文章在MSDN中很有帮助。