新手需要帮助自动打开文件夹中所有电子邮件的第一个超链接 [英] Newbie needs help to automatically open first hyperlink for all emails in folder

查看:74
本文介绍了新手需要帮助自动打开文件夹中所有电子邮件的第一个超链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我需要一个宏,当点击一个特定的Outlook文件夹时会执行此操作:

I need a macro that will do this when a specific Outlook folder is clicked:

1。仅在Firefox文件夹中的每个电子邮件中打开第一个超链接\\EMAIL@server.com \ .Folder1 \Folder2 \ .FolderUsed in Firefox(我的默认文件夹)。

1. Open the first hyperlink only in every email in the Outlook folder \\EMAIL@server.com\Folder1\Folder2\FolderUsed in Firefox (my default folder).

2 。打开链接后将电子邮件标记为已读

2. Mark the emails as read once the link is opened

3。删除标记为已读的电子邮件。

3. Delete the emails once marked as read.

有时一次只能发送10封电子邮件,所以我需要一种方法来绕过弹出的对话框询问我我确定我想一次打开X封电子邮件。

It'll sometimes be upwards of 10 emails at a time, so I need a way to bypass the dialogue box that pops up to ask f I'm sure I want to open X amount of emails at a time.

不确定我是否在正确的地方问这个,但它值得一试,因为这样可以节省我的时间一天。

Not sure if I'm asking this in the right place, but it's worth a shot as this'll save me hours a day.

谢谢!

推荐答案

Hello Teek,

Hello Teek,

1。要获取文件夹实例,请参阅
如何:获取基于文件夹的文件夹在其文件夹路径

1. To get a folder instance see How to: Get a Folder Based on Its Folder Path .

   要查找超链接,您可以使用Word对象模型或
HTMLBody 属性。请参阅
第17章:使用项目主体
以获取更多信息。

    To find hyperlinks you may use the Word object model or the HTMLBody property. See Chapter 17: Working with Item Bodies for more information.

2。要将项目标记为已读取,您需要将 UnRead 属性设置为false。

2. To mark items as read you need to set the UnRead property to false.

3。
删除
方法可以完成工作。

3. The Delete method does the work.

>它有时会一次超过10封电子邮件,所以我需要一种方法来绕过弹出的对话框询问我确定我想一次打开X封电子邮件。

> It'll sometimes be upwards of 10 emails at a time, so I need a way to bypass the dialogue box that pops up to ask f I'm sure I want to open X amount of emails at a time.

无需调用显示方法。并且不会再看到任何弹出窗口。

There is no need to call the Display method. And will not see any pop up windows any longer.

最后,您可能会找到
Outlook 2010中的VBA入门
文章很有帮助。

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


这篇关于新手需要帮助自动打开文件夹中所有电子邮件的第一个超链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆