通过VBA在Outlook的内部浏览器中打开网站 [英] Open website in Outlook's internal browser via VBA

查看:148
本文介绍了通过VBA在Outlook的内部浏览器中打开网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找通过VBA打开给定网页的方法.我可以使用:

I'm looking to open a given webpage via VBA. I can do this using:

Set browser = CreateObject("InternetExplorer.Application") 
browser.Navigate ("http://google.com")

但是这将打开IE的实例.我想在Outlooks集成浏览器窗口中打开它.

but this opens an instance of IE. I'd like to open it in Outlooks integrated browser window.

我认为这很容易,但是我对VBA并不熟悉,并且使用Google搜索功能并没有发现任何有用的信息.

I'd presume this is fairly easy, but I'm not familiar with VBA and googling has not turned up anything useful.

推荐答案

您使用的是哪个版本的out?旧版本的确具有浏览工具栏.

What version of out are you using ? older version did have a browse toolbar.

您可以使用上面的技术来钩挂命令栏,您也可以在VBA marco中执行此操作,实际上您不需要外接程序.

and you can use the technique above to hook the commandbars you can do this in VBA marco as well, you dont actualy need a addin.

您也可以通过文件夹主页功能来执行此操作,因为文件夹可以显示网页而不是常规文件夹内容. (右键单击属性">首页"标签)

You can also do it via the Folder Home Page Feature as folders can show a web page instead of the normal folder contents. (right click propteries > home page tab)

您可以通过OOM进行设置:

You can set this via the OOM:

Folder.WebViewURL 属性设置为您的URL并进行设置将 Folder.WebViewOn 属性设置为True

Set the Folder.WebViewURL Property to your URL and set the Folder.WebViewOn Property to True

您可以从Active Explorer中当前选择的文件夹上执行此操作,但请记住之后再将其设置回去.

You can do this on th currently selected folder from the Active Explorer but remember to set it back afterward.

这篇关于通过VBA在Outlook的内部浏览器中打开网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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