Consulting

Results 1 to 2 of 2

Thread: To paste in Word the selected text in webpage by an Excel macro

  1. #1
    VBAX Newbie
    Joined
    Sep 2012
    Posts
    4
    Location

    To paste in Word the selected text in webpage by an Excel macro

    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,

  2. #2
    VBAX Guru Kenneth Hobs's Avatar
    Joined
    Nov 2005
    Location
    Tecumseh, OK
    Posts
    4,956
    Location
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •