简体   繁体   中英

Excel VBA - Difference Between CreateObject and New Internet Explorer

Can someone please explain to me if there is a difference between

Set objIE = CreateObject("internetexplorer.application")

and

Set objIE = New InternetExplorer

The first one is late binding, and the second one is early binding. Early binding also requires a reference in the project whereas late binding does not.

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