使用Excel Vba操纵Outlook搜索框 [英] Manipulating Outlook Search Box with Excel Vba

查看:170
本文介绍了使用Excel Vba操纵Outlook搜索框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用来自任何excel单元格的任何字符串在Outlook Main Search框中进行搜索.

I try to do searching in Outlook Main Search box with any string coming from any excel cell.

例如,我在excel电子表格中有邮件参考编号,请先复制参考副本,然后打开Outlook(如果先打开,请先检查),然后粘贴到Outlook的主搜索框中,然后查看结果.

For example I have mail reference number in excel spreadsheet, firstly copy of reference and then open outlook (if its open firstly check), after paste in main search box in outlook and then see results.

推荐答案

我只是从python方面完成此操作的,如果不能帮助您,抱歉,但我相信您会这样做的

I just did this from the python side of things so sorry if this is no help but I believe you'd do

expl = Outlook.Explorers.Item(1)
expl.Search("asdf",1)

我使用了此文档 https://docs.microsoft.com/zh-我们/office/vba/api/outlook.explorer.search

Outlook.Explores.Item(1)返回一个资源管理器类型的对象作为您的主窗口,.Search是该对象中的方法.

Outlook.Explores.Item(1) returns a explorer type object being your main window and .Search is a method in of that object.

这篇关于使用Excel Vba操纵Outlook搜索框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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