Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy / Paste from web page | Excel Worksheet Functions | |||
Printing pivot table along with a copy and paste for each page fie | Excel Discussion (Misc queries) | |||
copy a page with hidden rows and only paste what is showing | Excel Discussion (Misc queries) | |||
Reference an identical cell on a different page using copy/paste? | Excel Worksheet Functions | |||
How do I copy page setup from one worksheet & paste into new shee. | Excel Discussion (Misc queries) |