G
Gwyndalf
The code below opens IE and allows me to navigate to my chosen page. What I
cannot make happen is for IE to select the whole page , copy it and then
allow me to paste it into my worksheet ("Hands"). Anyone know how I can do
this?
Sub ListLinks()
Dim IeApp As InternetExplorer
Dim sURL As String
Dim IeDoc As Object
Dim MyURL As String
' I need this to be variable/ user defined
MyURL = Application.GetOpenFilename()
Set IeApp = New InternetExplorer
'Make it visible
IeApp.Visible = True
'define the page to open
sURL = MyURL
'navigate to the page
IeApp.navigate sURL
'Pause the macro using a loop until the
'page is fully loaded
Do
Loop Until IeApp.readyState = READYSTATE_COMPLETE
Code needed here to copy and paste entire web page
Worksheets("Hands").Activate
Range("A1").Select
ActiveSheet.Paste
'Clean up
Set IeApp = Nothing
End Sub
cannot make happen is for IE to select the whole page , copy it and then
allow me to paste it into my worksheet ("Hands"). Anyone know how I can do
this?
Sub ListLinks()
Dim IeApp As InternetExplorer
Dim sURL As String
Dim IeDoc As Object
Dim MyURL As String
' I need this to be variable/ user defined
MyURL = Application.GetOpenFilename()
Set IeApp = New InternetExplorer
'Make it visible
IeApp.Visible = True
'define the page to open
sURL = MyURL
'navigate to the page
IeApp.navigate sURL
'Pause the macro using a loop until the
'page is fully loaded
Do
Loop Until IeApp.readyState = READYSTATE_COMPLETE
Code needed here to copy and paste entire web page
Worksheets("Hands").Activate
Range("A1").Select
ActiveSheet.Paste
'Clean up
Set IeApp = Nothing
End Sub