[英]vba- open IE on VBA and let it open the homepages
I set my homepages to several different websites on IE, but when I open IE using my VBA code below, nothing shows up as the homepage. 我将主页设置为IE上的几个不同的网站,但是当我使用下面的VBA代码打开IE时,没有任何内容显示为主页。 How should I modify the code so that IE opens up with the pre-set homepages?
我应该如何修改代码,以便IE可以打开预设的主页?
Sub OpenIE()
Dim ie As Object
Set objIE = CreateObject("InternetExplorer.Application")
objIE.Visible = True
End Sub
Use the .GoHome
method. 使用
.GoHome
方法。
objIE.GoHome
More at InternetExplorer object . 有关InternetExplorer对象的更多信息 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.