PDA

View Full Version : To paste in Word the selected text in webpage by an Excel macro



Herve
09-24-2012, 09:39 PM
I would like to copy the selected text of a webpage in a word file (at the beginning of the file) by an Excel Vba procedure.

Many thanks,

Kenneth Hobs
09-25-2012, 07:12 AM
See the previous post by Herve for getting a webpage url. http://www.vbaexpress.com/forum/showthread.php?t=43762

The referenced link in thread 43762 just gets one url. Additional code is needed to make sure that the active Internet Explorer window's url is found. There could be several IE windows open.

If you go to the trouble of selecting something in a web page, a copy like Ctrl+C and then a paste Ctrl+V seems simple enough.