Does anyone have a basic routine to open a web browser, go to the web site and copy all of the information?
I have four sites that are always being updated and I need to check information against the lists on these sites.
This is what I have found and modified but does not work:
Right from the beginning I get a, "Microsoft Visual Basic for Applications" error that reads: Compile error: User-defined type not defined
After clicking OK it highlights, "objIExplorer As InternetExplorer" on the first line of the code.
I have:
Excel 2010
Windows 8
Internet Explorer 11 (Version: 11.0.9600.16521) I need this to work on as many versions of Internet Explorer as possible.
I have four sites that are always being updated and I need to check information against the lists on these sites.
This is what I have found and modified but does not work:
Rich (BB code):
Dim objIExplorer As InternetExplorer
Public Sub Main()
'Reference set for: 'Microsoft Internet Controls'
Set objIExplorer = CreateObject("InternetExplorer.Application")
'Disable pop-up messages
objIExplorer.Silent = True
objIExplorer.Navigate "www.google.com"
Do While objIExplorer.Busy Or Not objIExplorer.ReadyState = 4: DoEvents: Loop
'objIExplorer.Document.getElementById("q").Value = "Hi" 'Set the value in the Inputbox
SendKeys "^a" 'Select all
SendKeys "^c" 'Copy
SendKeys "%{F4}", True 'Exit without saving
End Sub
Right from the beginning I get a, "Microsoft Visual Basic for Applications" error that reads: Compile error: User-defined type not defined
After clicking OK it highlights, "objIExplorer As InternetExplorer" on the first line of the code.
I have:
Excel 2010
Windows 8
Internet Explorer 11 (Version: 11.0.9600.16521) I need this to work on as many versions of Internet Explorer as possible.