简体   繁体   中英

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. How should I modify the code so that IE opens up with the pre-set homepages?

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

End Sub

Use the .GoHome method.

objIE.GoHome

More at InternetExplorer object .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM