Professional Documents
Culture Documents
Sub Macro1()
Dim ie As Object
Set ie = CreateObject("InternetExplorer.Application")
With ie
'.Visible = True
Do
DoEvents
Wend
ie.Quit
End With
End Sub
-----------------------------------------------------------------------------------------------------------------------
Sub Macro1()
Dim ie As Object
Set ie = CreateObject("InternetExplorer.Application")
With ie
'.Visible = True
Do
DoEvents
Wend
'this enters outputs into column L and grabs the firm name from MS
Next Row
ie.Quit
End With
End Sub
--------------------------------------
Sub XMLHTTP()
Dim XMLHTTP As Object, html As Object, objResultDiv As Object, objH3 As Object, link As Object
'this tells the program when to end; if there is no more text in the next box, it ends
start_time = Time
For i = 2 To lastRow
XMLHTTP.send
html.body.innerHTML = XMLHTTP.responseText
'the cells(i,#) is the column number you are placing your output in
DoEvents
Next
end_time = Time
Debug.Print "done" & "Time taken : " & DateDiff("n", start_time, end_time)
MsgBox "done" & "Time taken : " & DateDiff("n", start_time, end_time)
End Sub
-----------------------------------------------------------------------------------
Sub Brightscope_Scrub()
Dim IE As Object
Set IE = CreateObject("InternetExplorer.Application")
With IE
'.Visible = True
DoEvents
Wend
'this grabs the firm AUM from BS and enters outputs into stated column
Next Row
IE.Quit
End With
End Sub
---------------------------------------
**Disable F1**
Application.OnKey "{F1}", ""
---------------------------------------