Pls show me How to copy text from any given webpage to thee ClipBoard.
I now open the page manually and SelectAll - Copy data from File menu, but would like my program to do the copyin
Saving text, or the webpage itself, to a text file would also do.
My form already include WebBrowser1 control, but I have little idea how to use it!
Last edited by Bruin 1953; February 9th, 2012 at 02:58 AM.
This will get you the text of the web site cant remember how to paste into clipboard
strURL = "http://www.forexfactory.com"
Set objXMLHTTP = CreateObject("MSXML2.ServerXMLHTTP")
objXMLHTTP.Open "GET", strURL, False
objXMLHTTP.Send ""
strHTML = objXMLHTTP.ResponseText ' strHTML will contain the text of website strURL
This will get you the text of the web site cant remember how to paste into clipboard
strURL = "http://www.forexfactory.com"
Set objXMLHTTP = CreateObject("MSXML2.ServerXMLHTTP")
objXMLHTTP.Open "GET", strURL, False
objXMLHTTP.Send ""
strHTML = objXMLHTTP.ResponseText ' strHTML will contain the text of website strURL
You are probably right!
I thought I tried it and it worked, but I am finding out that this code return HTML in the page, not the textual data itself.
So, my request is on!
Bookmarks