Hello, I am using the Microsoft Internet Controls/Microsoft HTML Object Library, using the 'WebBrowser' to view the webpage to edit source via VB6... It seems to do fine but theres a few issues I been experiencing..
What I want for it to 'just' grab the source, but what it ends up doing it opening the page fully, including playing any sounds, flash, or opening up popup ads in new windows if theres any..
'frmHiddenBrowser.WebBrowser1.Navigate (allfiles(thefileon))', where allfiles(thefileon) is the file on your hard drive file path. It navigates, then gets the info with:
'pagesource = WebBrowser1.Document.documentElement.outerHTML'
Which is exactly what I want, reason why I WANT to use it is because it has simple grabbing, like grabbing link anchors easy, etc.
What I'm simply asking, is there a way to stop sounds/popups/etc from coming up, I just want the SOURCE, while still having the webbrowser functions like using link anchor, etc...
Is there any other way around this? Thanks!
How to add VBA References – Internet Controls, HTML Object Library. In order to control the Internet Explorer web browser, VBA needs 2 additional reference libraries: Microsoft HTML Object Library and Microsoft Internet Controls. Here’s how to add them. Open the VBA Editor, and click Tools. Microsoft Chart Controls for Microsoft.NET Framework 3.5 will install new assemblies that contain the ASP.NET and Windows Forms Chart Controls. Distribution of MSChart.exe: Use of MSChart.exe is subject to the license terms included in the “MSChart.exe” download file.
What I want for it to 'just' grab the source, but what it ends up doing it opening the page fully, including playing any sounds, flash, or opening up popup ads in new windows if theres any..
- In the VB Editor's References dialog box, I can't seem to find the 'Microsoft Internet Controls' library. Has it been renamed to something else? Any assistance would be greatly appreciated.
- Nov 25, 2009 I'm using VS 2005 VC and my application needs to use Microsoft Internet Controls. My dev environment has IE 6, then shdocvw.dll. I'd like to write portable code for workstation using IE7, then ieframe.dll. Issue is both related DLL has same CLSID for Microsoft Internet Controls type library!!!!! So I can't add two different references.
- How to add VBA References – Internet Controls, HTML Object Library. In order to control the Internet Explorer web browser, VBA needs 2 additional reference libraries: Microsoft HTML Object Library and Microsoft Internet Controls. Here’s how to add them. Open the VBA Editor, and click Tools References.
- Feb 07, 2013 VBA Internet Explorer iFrames Microsoft Internet Controls Microsoft HTML Object Library 'I would like to go to a website that have iframes, fill out text boxes in the iframe, then click a button in the iframe.
Right now what it does is for example
'frmHiddenBrowser.WebBrowser1.Navigate (allfiles(thefileon))', where allfiles(thefileon) is the file on your hard drive file path. It navigates, then gets the info with:
'pagesource = WebBrowser1.Document.documentElement.outerHTML'
Which is exactly what I want, reason why I WANT to use it is because it has simple grabbing, like grabbing link anchors easy, etc.
What I'm simply asking, is there a way to stop sounds/popups/etc from coming up, I just want the SOURCE, while still having the webbrowser functions like using link anchor, etc...
Is there any other way around this? Thanks!
Microsoft Internet Controls Library Software
-->If you use the objects in other applications as part of your Visual Basic application, you may want to establish a reference to the object libraries of those applications. Before you can do that, you must first be sure that the application provides an object library.
To see if an application provides an object library
- From the Tools menu, choose References to display the References dialog box.
- The References dialog box shows all object libraries registered with the operating system. Scroll through the list for the application whose object library you want to reference. If the application isn't listed, you can use the Browse button to search for object libraries (*.olb and *.tlb) or executable files (*.exe and *.dll on Windows). References whose check boxes are selected are used by your project; those that aren't selected are not used, but can be added.
To add an object library reference to your project
- Select the object library reference in the Available References box in the References dialog box and choose OK. Your Visual Basic project now has a reference to the application's object library. If you open the Object Browser (press F2) and select the application's library, it displays the objects provided by the selected object library, as well as each object's methods and properties.In the Object Browser, you can select a class in the Classes box and select a method or property in the Members box. Use copy and paste to add the syntax to your code.
See also
Support and feedback
Microsoft Library Manager
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.