VBA Microsoft HTML Object Library

The Microsoft HTML Object Library is used to interact with HTML documents. HTML documents can be retrieved from websites using browser automation or HTTP requests.

MSHTML Object Model
  1. applicationCache
  2. BlockFormats
  3. CanvasGradient
  4. CanvasImageData
  5. CanvasPattern
  6. CanvasRenderingContext2D
  7. CanvasTextMetrics
  8. CClientCaps
  9. CEventObj
  10. CMimeTypes
  11. COpsProfile
  12. CPlugins
  13. CPrintManagerTemplatePrinter
  14. CTemplatePrinter
  15. DOMBeforeUnloadEvent
  16. DOMChildrenCollection
  17. DOMCloseEvent
  18. DOMCompositionEvent
  19. DOMCustomEvent
  20. DOMDocumentType
  21. DOMDragEvent
  22. DOMEvent
  23. DOMException
  24. DOMFocusEvent
  25. DOMKeyboardEvent
  26. DOMMessageEvent
  27. DOMMouseEvent
  28. DOMMouseWheelEvent
  29. DOMMSAnimationEvent
  30. DOMMSManipulationEvent
  31. DOMMSTransitionEvent
  32. DOMMutationEvent
  33. DOMParser
  34. DOMParserFactory
  35. DOMProcessingInstruction
  36. DOMProgressEvent
  37. DOMSiteModeEvent
  38. DOMStorageEvent
  39. DOMTextEvent
  40. DOMUIEvent
  41. DOMWheelEvent
  42. EventException
  43. FontNames
  44. FramesCollection
  45. HTCAttachBehavior
  46. HTCDefaultDispatch
  47. HTCDescBehavior
  48. HTCEventBehavior
  49. HTCMethodBehavior
  50. HTCPropertyBehavior
  51. HTMLAnchorElement
  52. HTMLAppBehavior
  53. HTMLAreaElement
  54. HTMLAreasCollection
  55. HTMLAttributeCollection
  56. HTMLAudioElement
  57. HTMLAudioElementFactory
  58. HTMLBaseElement
  59. HTMLBaseFontElement
  60. HTMLBGsound
  61. HTMLBlockElement
  62. HTMLBody
  63. HTMLBRElement
  64. HTMLButtonElement
  65. HTMLCanvasElement
  66. HTMLCommentElement
  67. HTMLCSSImportRule
  68. HTMLCSSMediaList
  69. HTMLCSSMediaRule
  70. HTMLCSSNamespaceRule
  71. HTMLCSSRule
  72. HTMLCSSStyleDeclaration
  73. HTMLCurrentStyle
  74. HTMLDDElement
  75. HTMLDefaults
  76. HTMLDialog
  77. HTMLDivElement
  78. HTMLDivPosition
  79. HtmlDlgSafeHelper
  80. HTMLDListElement
  81. HTMLDocument
  82. HTMLDocumentCompatibleInfo
  83. HTMLDocumentCompatibleInfoCollection
  84. HTMLDOMAttribute
  85. HTMLDOMImplementation
  86. HTMLDOMRange
  87. HTMLDOMTextNode
  88. HTMLDOMXmlSerializerFactory
  89. HTMLDTElement
  90. HTMLElementCollection
  91. HTMLEmbed
  92. HTMLFieldSetElement
  93. HTMLFontElement
  94. HTMLFormElement
  95. HTMLFrameBase
  96. HTMLFrameElement
  97. HTMLFrameSetSite
  98. HTMLGenericElement
  99. HTMLHeadElement
  100. HTMLHeaderElement
  101. HTMLHistory
  102. HTMLHRElement
  103. HTMLHtmlElement
  104. HTMLIFrame
  105. HTMLImageElementFactory
  106. HTMLImg
  107. HTMLInputButtonElement
  108. HTMLInputElement
  109. HTMLInputFileElement
  110. htmlInputImage
  111. HTMLInputTextElement
  112. HTMLIsIndexElement
  113. HTMLLabelElement
  114. HTMLLegendElement
  115. HTMLLIElement
  116. HTMLLinkElement
  117. HTMLListElement
  118. HTMLLocation
  119. HTMLMapElement
  120. HTMLMarqueeElement
  121. HTMLMediaElement
  122. HTMLMediaError
  123. HTMLMetaElement
  124. HTMLMSCSSKeyframeRule
  125. HTMLMSCSSKeyframesRule
  126. HTMLNamespace
  127. HTMLNamespaceCollection
  128. HTMLNavigator
  129. HTMLNextIdElement
  130. HTMLNoShowElement
  131. HTMLObjectElement
  132. HTMLOListElement
  133. HTMLOptionButtonElement
  134. HTMLOptionElement
  135. HTMLOptionElementFactory
  136. HTMLParaElement
  137. HTMLParamElement
  138. HTMLPerformance
  139. HTMLPerformanceNavigation
  140. HTMLPerformanceTiming
  141. HTMLPhraseElement
  142. HTMLPopup
  143. HTMLProgressElement
  144. HTMLRenderStyle
  145. HTMLRichtextElement
  146. HTMLRuleStyle
  147. HTMLScreen
  148. HTMLScriptElement
  149. HTMLSelectElement
  150. HTMLSemanticElement
  151. HTMLSourceElement
  152. HTMLSpanElement
  153. HTMLSpanFlow
  154. HTMLStorage
  155. HTMLStyle
  156. HTMLStyleElement
  157. HTMLStyleFontFace
  158. HTMLStyleMedia
  159. HTMLStyleSheet
  160. HTMLStyleSheetPage
  161. HTMLStyleSheetPagesCollection
  162. HTMLStyleSheetRule
  163. HTMLStyleSheetRulesAppliedCollection
  164. HTMLStyleSheetRulesCollection
  165. HTMLStyleSheetsCollection
  166. HTMLTable
  167. HTMLTableCaption
  168. HTMLTableCell
  169. HTMLTableCol
  170. HTMLTableRow
  171. HTMLTableSection
  172. HTMLTextAreaElement
  173. HTMLTextElement
  174. HTMLTimeRanges
  175. HTMLTitleElement
  176. HTMLUListElement
  177. HTMLUnknownElement
  178. HTMLUrnCollection
  179. HTMLVideoElement
  180. HTMLW3CComputedStyle
  181. HTMLWindow2
  182. HTMLWindowProxy
  183. HTMLWndOptionElement
  184. HTMLWndSelectElement
  185. HTMLXMLHttpRequest
  186. HTMLXMLHttpRequestFactory
  187. IActiveIMMApp
  188. IBFCacheable
  189. ICanvasGradient
  190. ICanvasImageData
  191. ICanvasPattern
  192. ICanvasPixelArray
  193. ICanvasPixelArrayData
  194. ICanvasRenderingContext2D
  195. ICanvasTextMetrics
  196. ICSSFilter
  197. ICSSFilterSite
  198. IDebugCallbackNotificationHandler
  199. IDeveloperConsoleMessageReceiver
  200. IDisplayPointer
  201. IDisplayServices
  202. IDocumentEvent
  203. IDocumentRange
  204. IDocumentSelector
  205. IDocumentTraversal
  206. IDOMBeforeUnloadEvent
  207. IDOMCloseEvent
  208. IDOMCompositionEvent
  209. IDOMCustomEvent
  210. IDOMDocumentType
  211. IDOMDragEvent
  212. IDOMEvent
  213. IDOMEventRegistrationCallback
  214. IDOMException
  215. IDOMFocusEvent
  216. IDOMKeyboardEvent
  217. IDOMMessageEvent
  218. IDOMMouseEvent
  219. IDOMMouseWheelEvent
  220. IDOMMSAnimationEvent
  221. IDOMMSManipulationEvent
  222. IDOMMSTransitionEvent
  223. IDOMMutationEvent
  224. IDOMNodeIterator
  225. IDOMParser
  226. IDOMProcessingInstruction
  227. IDOMProgressEvent
  228. IDOMSiteModeEvent
  229. IDOMStorageEvent
  230. IDOMTextEvent
  231. IDOMTreeWalker
  232. IDOMUIEvent
  233. IDOMWheelEvent
  234. IDOMXmlSerializer
  235. IElementBehavior
  236. IElementBehaviorCategory
  237. IElementBehaviorFactory
  238. IElementBehaviorFocus
  239. IElementBehaviorLayout
  240. IElementBehaviorLayout2
  241. IElementBehaviorRender
  242. IElementBehaviorSite
  243. IElementBehaviorSiteCategory
  244. IElementBehaviorSiteLayout
  245. IElementBehaviorSiteLayout2
  246. IElementBehaviorSiteOM
  247. IElementBehaviorSiteOM2
  248. IElementBehaviorSiteRender
  249. IElementBehaviorSubmit
  250. IElementNamespace
  251. IElementNamespaceFactory
  252. IElementNamespaceFactory2
  253. IElementNamespaceFactoryCallback
  254. IElementNamespaceTable
  255. IElementSegment
  256. IElementSelector
  257. IElementTraversal
  258. IEnumInputContext
  259. IEnumPrivacyRecords
  260. IEnumRegisterWordA
  261. IEnumRegisterWordW
  262. IEnumUnknown
  263. IEventException
  264. IEventTarget
  265. IEventTarget2
  266. IGetSVGDocument
  267. IHighlightRenderingServices
  268. IHighlightSegment
  269. IHostBehaviorInit
  270. IHTCAttachBehavior
  271. IHTCAttachBehavior2
  272. IHTCDefaultDispatch
  273. IHTCDescBehavior
  274. IHTCEventBehavior
  275. IHTCMethodBehavior
  276. IHTCPropertyBehavior
  277. IHTMLAnchorElement
  278. IHTMLAnchorElement2
  279. IHTMLAnchorElement3
  280. IHTMLAppBehavior
  281. IHTMLAppBehavior2
  282. IHTMLAppBehavior3
  283. IHTMLAreaElement
  284. IHTMLAreaElement2
  285. IHTMLAreasCollection
  286. IHTMLAreasCollection2
  287. IHTMLAreasCollection3
  288. IHTMLAreasCollection4
  289. IHTMLAttributeCollection
  290. IHTMLAttributeCollection2
  291. IHTMLAttributeCollection3
  292. IHTMLAttributeCollection4
  293. IHTMLAudioElement
  294. IHTMLBaseElement
  295. IHTMLBaseElement2
  296. IHTMLBaseFontElement
  297. IHTMLBGsound
  298. IHTMLBlockElement
  299. IHTMLBlockElement2
  300. IHTMLBlockElement3
  301. IHTMLBodyElement
  302. IHTMLBodyElement2
  303. IHTMLBodyElement3
  304. IHTMLBodyElement4
  305. IHTMLBodyElement5
  306. IHTMLBookmarkCollection
  307. IHTMLBRElement
  308. IHTMLButtonElement
  309. IHTMLButtonElement2
  310. IHTMLCanvasElement
  311. IHTMLCaret
  312. IHTMLChangeLog
  313. IHTMLChangePlayback
  314. IHTMLChangeSink
  315. IHTMLCommentElement
  316. IHTMLCommentElement2
  317. IHTMLCommentElement3
  318. IHTMLComputedStyle
  319. IHTMLControlElement
  320. IHTMLControlRange
  321. IHTMLControlRange2
  322. IHTMLCSSImportRule
  323. IHTMLCSSMediaList
  324. IHTMLCSSMediaRule
  325. IHTMLCSSNamespaceRule
  326. IHTMLCSSRule
  327. IHTMLCSSStyleDeclaration
  328. IHTMLCSSStyleDeclaration2
  329. IHTMLCSSStyleDeclaration3
  330. IHTMLCSSStyleDeclaration4
  331. IHTMLCurrentStyle
  332. IHTMLCurrentStyle2
  333. IHTMLCurrentStyle3
  334. IHTMLCurrentStyle4
  335. IHTMLCurrentStyle5
  336. IHTMLDatabinding
  337. IHTMLDataTransfer
  338. IHTMLDDElement
  339. IHTMLDialog2
  340. IHTMLDialog3
  341. IHTMLDivElement
  342. IHTMLDivPosition
  343. IHTMLDListElement
  344. IHTMLDocument
  345. IHTMLDocument2
  346. IHTMLDocument3
  347. IHTMLDocument4
  348. IHTMLDocument5
  349. IHTMLDocument6
  350. IHTMLDocument7
  351. IHTMLDocument8
  352. IHTMLDocumentCompatibleInfo
  353. IHTMLDocumentCompatibleInfoCollection
  354. IHTMLDOMAttribute
  355. IHTMLDOMAttribute2
  356. IHTMLDOMAttribute3
  357. IHTMLDOMAttribute4
  358. IHTMLDOMChildrenCollection
  359. IHTMLDOMChildrenCollection2
  360. IHTMLDOMConstructor
  361. IHTMLDOMConstructorCollection
  362. IHTMLDOMImplementation
  363. IHTMLDOMImplementation2
  364. IHTMLDOMNode
  365. IHTMLDOMNode2
  366. IHTMLDOMNode3
  367. IHTMLDOMRange
  368. IHTMLDOMTextNode
  369. IHTMLDOMTextNode2
  370. IHTMLDOMTextNode3
  371. IHTMLDTElement
  372. IHTMLEditDesigner
  373. IHTMLEditHost
  374. IHTMLEditHost2
  375. IHTMLEditServices
  376. IHTMLEditServices2
  377. IHTMLElement
  378. IHTMLElement2
  379. IHTMLElement3
  380. IHTMLElement4
  381. IHTMLElement5
  382. IHTMLElement6
  383. IHTMLElement7
  384. IHTMLElementAppliedStyles
  385. IHTMLElementCollection
  386. IHTMLElementCollection2
  387. IHTMLElementCollection3
  388. IHTMLElementCollection4
  389. IHTMLElementDefaults
  390. IHTMLElementRender
  391. IHTMLEmbedElement
  392. IHTMLEmbedElement2
  393. IHTMLEventObj
  394. IHTMLEventObj2
  395. IHTMLEventObj3
  396. IHTMLEventObj4
  397. IHTMLEventObj5
  398. IHTMLEventObj6
  399. IHTMLFieldSetElement
  400. IHTMLFieldSetElement2
  401. IHTMLFiltersCollection
  402. IHTMLFontElement
  403. IHTMLFontNamesCollection
  404. IHTMLFontSizesCollection
  405. IHTMLFormElement
  406. IHTMLFormElement2
  407. IHTMLFormElement3
  408. IHTMLFormElement4
  409. IHTMLFrameBase
  410. IHTMLFrameBase2
  411. IHTMLFrameBase3
  412. IHTMLFrameElement
  413. IHTMLFrameElement2
  414. IHTMLFrameElement3
  415. IHTMLFrameSetElement
  416. IHTMLFrameSetElement2
  417. IHTMLFrameSetElement3
  418. IHTMLGenericElement
  419. IHTMLHeadElement
  420. IHTMLHeadElement2
  421. IHTMLHeaderElement
  422. IHTMLHRElement
  423. IHTMLHtmlElement
  424. IHTMLIFrameElement
  425. IHTMLIFrameElement2
  426. IHTMLIFrameElement3
  427. IHTMLImgElement
  428. IHTMLImgElement2
  429. IHTMLImgElement3
  430. IHTMLImgElement4
  431. IHTMLInputButtonElement
  432. IHTMLInputElement
  433. IHTMLInputElement2
  434. IHTMLInputElement3
  435. IHTMLInputFileElement
  436. IHTMLInputHiddenElement
  437. IHTMLInputImage
  438. IHTMLInputRangeElement
  439. IHTMLInputTextElement
  440. IHTMLInputTextElement2
  441. IHTMLIPrintCollection
  442. IHTMLIsIndexElement
  443. IHTMLIsIndexElement2
  444. IHTMLLabelElement
  445. IHTMLLabelElement2
  446. IHTMLLegendElement
  447. IHTMLLegendElement2
  448. IHTMLLIElement
  449. IHTMLLinkElement
  450. IHTMLLinkElement2
  451. IHTMLLinkElement3
  452. IHTMLLinkElement4
  453. IHTMLLinkElement5
  454. IHTMLListElement
  455. IHTMLListElement2
  456. IHTMLLocation
  457. IHTMLMapElement
  458. IHTMLMarqueeElement
  459. IHTMLMediaElement
  460. IHTMLMediaElement2
  461. IHTMLMediaError
  462. IHTMLMetaElement
  463. IHTMLMetaElement2
  464. IHTMLMetaElement3
  465. IHTMLMSCSSKeyframeRule
  466. IHTMLMSCSSKeyframesRule
  467. IHTMLMSImgElement
  468. IHTMLMSMediaElement
  469. IHTMLNamespace
  470. IHTMLNamespaceCollection
  471. IHTMLNextIdElement
  472. IHTMLNoShowElement
  473. IHTMLObjectElement
  474. IHTMLObjectElement2
  475. IHTMLObjectElement3
  476. IHTMLObjectElement4
  477. IHTMLObjectElement5
  478. IHTMLOListElement
  479. IHTMLOptionButtonElement
  480. IHTMLOptionElement
  481. IHTMLOptionElement3
  482. IHTMLOptionElement4
  483. IHTMLOptionsHolder
  484. IHTMLPainter
  485. IHTMLPainterEventInfo
  486. IHTMLPainterOverlay
  487. IHTMLPaintSite
  488. IHTMLParaElement
  489. IHTMLParamElement
  490. IHTMLParamElement2
  491. IHTMLPerformance
  492. IHTMLPerformanceNavigation
  493. IHTMLPerformanceTiming
  494. IHTMLPhraseElement
  495. IHTMLPhraseElement2
  496. IHTMLPhraseElement3
  497. IHTMLPluginsCollection
  498. IHTMLPopup
  499. IHTMLProgressElement
  500. IHTMLRect
  501. IHTMLRect2
  502. IHTMLRectCollection
  503. IHTMLRenderStyle
  504. IHTMLRuleStyle
  505. IHTMLRuleStyle2
  506. IHTMLRuleStyle3
  507. IHTMLRuleStyle4
  508. IHTMLRuleStyle5
  509. IHTMLRuleStyle6
  510. IHTMLScreen
  511. IHTMLScreen2
  512. IHTMLScreen3
  513. IHTMLScreen4
  514. IHTMLScriptElement
  515. IHTMLScriptElement2
  516. IHTMLScriptElement3
  517. IHTMLScriptElement4
  518. IHTMLSelectElement
  519. IHTMLSelectElement2
  520. IHTMLSelectElement4
  521. IHTMLSelectElement5
  522. IHTMLSelectElement6
  523. IHTMLSelectElementEx
  524. IHTMLSelection
  525. IHTMLSelectionObject
  526. IHTMLSelectionObject2
  527. IHTMLSourceElement
  528. IHTMLSpanElement
  529. IHTMLSpanFlow
  530. IHTMLStorage
  531. IHTMLStorage2
  532. IHTMLStyle
  533. IHTMLStyle2
  534. IHTMLStyle3
  535. IHTMLStyle4
  536. IHTMLStyle5
  537. IHTMLStyle6
  538. IHTMLStyleElement
  539. IHTMLStyleElement2
  540. IHTMLStyleEnabled
  541. IHTMLStyleFontFace
  542. IHTMLStyleFontFace2
  543. IHTMLStyleMedia
  544. IHTMLStyleSheet
  545. IHTMLStyleSheet2
  546. IHTMLStyleSheet3
  547. IHTMLStyleSheet4
  548. IHTMLStyleSheetPage
  549. IHTMLStyleSheetPage2
  550. IHTMLStyleSheetPagesCollection
  551. IHTMLStyleSheetRule
  552. IHTMLStyleSheetRule2
  553. IHTMLStyleSheetRuleApplied
  554. IHTMLStyleSheetRulesAppliedCollection
  555. IHTMLStyleSheetRulesCollection
  556. IHTMLStyleSheetRulesCollection2
  557. IHTMLStyleSheetsCollection
  558. IHTMLStyleSheetsCollection2
  559. IHTMLSubmitData
  560. IHTMLTable
  561. IHTMLTable2
  562. IHTMLTable3
  563. IHTMLTable4
  564. IHTMLTableCaption
  565. IHTMLTableCell
  566. IHTMLTableCell2
  567. IHTMLTableCell3
  568. IHTMLTableCol
  569. IHTMLTableCol2
  570. IHTMLTableCol3
  571. IHTMLTableRow
  572. IHTMLTableRow2
  573. IHTMLTableRow3
  574. IHTMLTableRow4
  575. IHTMLTableRowMetrics
  576. IHTMLTableSection
  577. IHTMLTableSection2
  578. IHTMLTableSection3
  579. IHTMLTableSection4
  580. IHTMLTextAreaElement
  581. IHTMLTextAreaElement2
  582. IHTMLTextContainer
  583. IHTMLTextElement
  584. IHTMLTextRangeMetrics
  585. IHTMLTextRangeMetrics2
  586. IHTMLTimeRanges
  587. IHTMLTimeRanges2
  588. IHTMLTitleElement
  589. IHTMLTxtRange
  590. IHTMLTxtRangeCollection
  591. IHTMLUListElement
  592. IHTMLUniqueName
  593. IHTMLUnknownElement
  594. IHTMLUrnCollection
  595. IHTMLVideoElement
  596. IHTMLWindow2
  597. IHTMLWindow3
  598. IHTMLWindow4
  599. IHTMLWindow5
  600. IHTMLWindow6
  601. IHTMLWindow7
  602. IHTMLWindow8
  603. IHTMLXDomainRequest
  604. IHTMLXMLHttpRequest
  605. IHTMLXMLHttpRequest2
  606. IICCSVGColor
  607. IIMEServices
  608. ILineInfo
  609. IMarkupContainer
  610. IMarkupContainer2
  611. IMarkupPointer
  612. IMarkupPointer2
  613. IMarkupServices
  614. IMarkupServices2
  615. IMarkupTextFrags
  616. INavigatorDoNotTrack
  617. INavigatorGeolocation
  618. IOmHistory
  619. IOmNavigator
  620. IPrintManagerTemplatePrinter
  621. IPrintManagerTemplatePrinter2
  622. IRangeException
  623. IRulesApplied
  624. IRulesAppliedCollection
  625. IScriptEventHandler
  626. IScriptEventHandlerSourceInfo
  627. ISecureUrlHost
  628. ISegment
  629. ISegmentList
  630. ISegmentListIterator
  631. ISelectionServices
  632. ISelectionServicesListener
  633. ISequenceNumber
  634. ISurfacePresenter
  635. ISVGAElement
  636. ISVGAnimatedPathData
  637. ISVGAnimatedPoints
  638. ISVGCircleElement
  639. ISVGClipPathElement
  640. ISVGDefsElement
  641. ISVGDescElement
  642. ISVGDocument
  643. ISVGElement
  644. ISVGElementInstance
  645. ISVGElementInstanceList
  646. ISVGEllipseElement
  647. ISVGException
  648. ISVGExternalResourcesRequired
  649. ISVGFitToViewBox
  650. ISVGGElement
  651. ISVGGradientElement
  652. ISVGImageElement
  653. ISVGLangSpace
  654. ISVGLinearGradientElement
  655. ISVGLineElement
  656. ISVGLocatable
  657. ISVGMarkerElement
  658. ISVGMaskElement
  659. ISVGMetadataElement
  660. ISVGPaint
  661. ISVGPathElement
  662. ISVGPathSegArcAbs
  663. ISVGPathSegArcRel
  664. ISVGPathSegClosePath
  665. ISVGPathSegCurvetoCubicAbs
  666. ISVGPathSegCurvetoCubicRel
  667. ISVGPathSegCurvetoCubicSmoothAbs
  668. ISVGPathSegCurvetoCubicSmoothRel
  669. ISVGPathSegCurvetoQuadraticAbs
  670. ISVGPathSegCurvetoQuadraticRel
  671. ISVGPathSegCurvetoQuadraticSmoothAbs
  672. ISVGPathSegCurvetoQuadraticSmoothRel
  673. ISVGPathSegLinetoAbs
  674. ISVGPathSegLinetoHorizontalAbs
  675. ISVGPathSegLinetoHorizontalRel
  676. ISVGPathSegLinetoRel
  677. ISVGPathSegLinetoVerticalAbs
  678. ISVGPathSegLinetoVerticalRel
  679. ISVGPathSegMovetoAbs
  680. ISVGPathSegMovetoRel
  681. ISVGPatternElement
  682. ISVGPolygonElement
  683. ISVGPolylineElement
  684. ISVGRadialGradientElement
  685. ISVGRectElement
  686. ISVGScriptElement
  687. ISVGStopElement
  688. ISVGStylable
  689. ISVGStyleElement
  690. ISVGSVGElement
  691. ISVGSwitchElement
  692. ISVGSymbolElement
  693. ISVGTests
  694. ISVGTextContentElement
  695. ISVGTextElement
  696. ISVGTextPathElement
  697. ISVGTextPositioningElement
  698. ISVGTitleElement
  699. ISVGTransformable
  700. ISVGTSpanElement
  701. ISVGURIReference
  702. ISVGUseElement
  703. ISVGViewElement
  704. ISVGViewSpec
  705. ISVGZoomAndPan
  706. ISVGZoomEvent
  707. ITemplatePrinter
  708. ITemplatePrinter2
  709. ITrackingProtection
  710. IViewObjectPresentNotify
  711. IViewObjectPresentNotifySite
  712. IViewObjectPresentSite
  713. IViewObjectPrint
  714. IWBScriptControl
  715. IWebGeocoordinates
  716. IWebGeolocation
  717. IWebGeoposition
  718. IWebGeopositionError
  719. IWPCBlockedUrls
  720. IXMLGenericParse
  721. IXMLHttpRequestEventTarget
  722. NodeIterator
  723. OldHTMLDocument
  724. OldHTMLFormElement
  725. RangeException
  726. RulesApplied
  727. RulesAppliedCollection
  728. Scriptlet
  729. StaticNodeList
  730. SVGAElement
  731. SVGAngle
  732. SVGAnimatedAngle
  733. SVGAnimatedBoolean
  734. SVGAnimatedEnumeration
  735. SVGAnimatedInteger
  736. SVGAnimatedLength
  737. SVGAnimatedLengthList
  738. SVGAnimatedNumber
  739. SVGAnimatedNumberList
  740. SVGAnimatedPreserveAspectRatio
  741. SVGAnimatedRect
  742. SVGAnimatedString
  743. SVGAnimatedTransformList
  744. SVGCircleElement
  745. SVGClipPathElement
  746. SVGDefsElement
  747. SVGDescElement
  748. SVGElement
  749. SVGElementInstance
  750. SVGElementInstanceList
  751. SVGEllipseElement
  752. SVGException
  753. SVGGElement
  754. SVGGradientElement
  755. SVGImageElement
  756. SVGLength
  757. SVGLengthList
  758. SVGLinearGradientElement
  759. SVGLineElement
  760. SVGMarkerElement
  761. SVGMaskElement
  762. SVGMatrix
  763. SVGMetadataElement
  764. SVGNumber
  765. SVGNumberList
  766. SVGPathElement
  767. SVGPathSeg
  768. SVGPathSegArcAbs
  769. SVGPathSegArcRel
  770. SVGPathSegClosePath
  771. SVGPathSegCurvetoCubicAbs
  772. SVGPathSegCurvetoCubicRel
  773. SVGPathSegCurvetoCubicSmoothAbs
  774. SVGPathSegCurvetoCubicSmoothRel
  775. SVGPathSegCurvetoQuadraticAbs
  776. SVGPathSegCurvetoQuadraticRel
  777. SVGPathSegCurvetoQuadraticSmoothAbs
  778. SVGPathSegCurvetoQuadraticSmoothRel
  779. SVGPathSegLinetoAbs
  780. SVGPathSegLinetoHorizontalAbs
  781. SVGPathSegLinetoHorizontalRel
  782. SVGPathSegLinetoRel
  783. SVGPathSegLinetoVerticalAbs
  784. SVGPathSegLinetoVerticalRel
  785. SVGPathSegList
  786. SVGPathSegMovetoAbs
  787. SVGPathSegMovetoRel
  788. SVGPatternElement
  789. SVGPoint
  790. SVGPointList
  791. SVGPolygonElement
  792. SVGPolylineElement
  793. SVGPreserveAspectRatio
  794. SVGRadialGradientElement
  795. SVGRect
  796. SVGRectElement
  797. SVGScriptElement
  798. SVGStopElement
  799. SVGStringList
  800. SVGStyleElement
  801. SVGSVGElement
  802. SVGSwitchElement
  803. SVGSymbolElement
  804. SVGTextContentElement
  805. SVGTextElement
  806. SVGTextPathElement
  807. SVGTextPositioningElement
  808. SVGTitleElement
  809. SVGTransform
  810. SVGTransformList
  811. SVGTSpanElement
  812. SVGUseElement
  813. SVGViewElement
  814. SVGZoomEvent
  815. ThreadDialogProcParam
  816. TreeWalker
  817. WebGeocoordinates
  818. WebGeolocation
  819. WebGeoposition
  820. WebGeopositionError
  821. XDomainRequest
  822. XDomainRequestFactory
  823. XMLHttpRequestEventTarget
  824. XMLSerializer

Use Cases

Browser Automation

The MSHTML library can be used along with the Microsoft Internet Controls Library to automate Internet Explorer and retrieve an HTML webpage.

Public Sub Example()

    Dim IE As Object 'SHDocVw.InternetExplorer
    Set IE = CreateObject("InternetExplorer.Application")

    IE.Visible = True
    IE.navigate "https://www.bing.com/"

    Do Until IE.readyState = 4 'READYSTATE_COMPLETE
        DoEvents
    Loop

    Dim HTMLDoc As Object 'MSHTML.HTMLDocument
    Set HTMLDoc = IE.document

    Debug.Print HTMLDoc.body.innerHTML

    IE.Quit

End Sub

HTTP Requests

The MSXML2 Library and the WinHTTP Library can be used to automate HTTP requests. The MSHTML library can be used with HTTP requests to traverse the DOM.

Public Sub Example()

    Dim HTMLDoc As Object 'MSHTML.HTMLDocument
    Set HTMLDoc = CreateObject("htmlfile")

    Dim Req As Object 'MSXML2.XMLHTTP60
    Set Req = CreateObject("MSXML2.XMLHTTP.6.0")

    With Req
        .Open "GET", "https://www.bing.com/"
        .send
        If .readyState <> 4 Or .Status <> 200 Then
            Debug.Print .readyState, .Status
            Exit Sub
        End If
        HTMLDoc.body.innerHTML = .responseText
    End With

    Dim ATags As Object 'IHTMLElementCollection
    Set ATags = HTMLDoc.getElementsByTagName("a")

    Dim ATag As Object 'IHTMLAnchorElement
    For Each ATag In ATags
        Debug.Print ATag.href
    Next ATag

End Sub