vba- 在 VBA 上打开 IE 并让它打开主页

vba- open IE on VBA and let it open the homepages

我在 IE 上将我的主页设置为几个不同的网站,但是当我使用下面的 VBA 代码打开 IE 时,没有任何主页显示。我应该如何修改代码才能让IE打开预设的主页?

Sub OpenIE()
    Dim ie As Object
    Set objIE = CreateObject("InternetExplorer.Application")
    objIE.Visible = True

End Sub

使用.GoHome方法。

objIE.GoHome

更多信息在 InternetExplorer object