ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   linking to web page (https://www.excelbanter.com/excel-programming/308380-linking-web-page.html)

joe

linking to web page
 
I wish to link to a web page copy the information to the
clipboard and paste this as plain text onto an excel
sheet. Any help with achieving this or pointers to
articles would be appreciated.
Ta


Stephen Bullen[_3_]

linking to web page
 
Hi Joe,

I wish to link to a web page copy the information to the
clipboard and paste this as plain text onto an excel
sheet. Any help with achieving this or pointers to
articles would be appreciated.


It might be easier to use a web query. Click on Data Import External
data New Web Query and follow the wizard.

Regards

Stephen Bullen
Microsoft MVP - Excel
www.BMSLtd.ie



Jake Marx[_3_]

linking to web page
 
Hi Joe,

Joe wrote:
I wish to link to a web page copy the information to the
clipboard and paste this as plain text onto an excel
sheet. Any help with achieving this or pointers to
articles would be appreciated.


As Stephen noted, you can use the Web Query feature to do this. If you are
looking for a programmatic solution, you can automate IE:

Public Function gsGetURLText(rsURL As String) As String
Dim ie As Object

Set ie = CreateObject("InternetExplorer.Application")

With ie
.Navigate rsURL
Do Until ie.ReadyState = 4 And Not ie.Busy
DoEvents
Loop
gsGetURLText = .Document.Body.InnerText
.Quit
End With

Set ie = Nothing
End Function

--
Regards,

Jake Marx
MS MVP - Excel
www.longhead.com

[please keep replies in the newsgroup - email address unmonitored]



All times are GMT +1. The time now is 10:11 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com