标签: internet-explorer excel-vba vba excel
我在IE上将我的主页设置为几个不同的网站,但是当我使用下面的VBA代码打开IE时,没有任何内容显示为主页。我应该如何修改代码,以便IE打开预设的主页?
Sub OpenIE() Dim ie As Object Set objIE = CreateObject("InternetExplorer.Application") objIE.Visible = True End Sub
答案 0 :(得分:2)
使用.GoHome方法。
.GoHome
objIE.GoHome
更多信息InternetExplorer object。