

Run the macro AutomateIE by going to Tools-Macro-Macros and double-click AutomateIE.This sets the references to the VBscript Regular Expressions 5.5 and Internet Controls libraries Run the macro SetRefs by going to Tools-Macro-Macros and double-click SetRefs. If Excel is not listed, click 'Other or choose from other apps' and select Excel from the list of available applications.> Click Apply> Click OK Once you have changed the file association back to Excel, double-clicking on an Excel file should open it in Excel instead of Internet Explorer.Close the VBE, and save the file if desired.Paste the code into the code window at right.


'If a match to our RegExp searchstring is found then launch this page Now that you have the reference set, you can open the Object Browser and examine XML DOM's objects. Login to sharepoint site from Internet Explorer. The XML DOM is supplied with Internet Explorer. 'String to parse google search for a VBAX reference NOTES Note 1: This VBA code will open all excel files at once that are located in a specified folder. Excel can be used to automate internet explorer, loop through multiple pages for specific strings and then dump data.ĭim RegEx As RegExp, RegMatch As MatchCollectionĭo Until ie.ReadyState = READYSTATE_COMPLETE You want to download data from an internet database. If a valid website is found via a regular expressions parsing search, then this web page is opened.įor more info on regular expressions please see This code runs a google search for 'vbax kb'. Automate Internet Explorer from Excel (google search)
