Results 1 to 3 of 3

Thread: How to copy a web page in Excel using VBA

  1. #1
    Join Date
    Feb 2012
    Posts
    11

    How to copy a web page in Excel using VBA

    Attempts to code, in VBA, a means of copying a web page onto an Excel sheet have been frustrating and inconclusive. When I apply the "QueryTables.Add" approach using the URL, I get a partial result but it does not include the data I wish to capture - just static data. If I use the "FollowHyperlink" approach, Internet Explorer is called and the web page is displayed but I cannot see how to code in VBA, "SellectAll" and "Copy" so that I can then "Paste" to the Excel sheet. I have tried this approach in a manual manner using a list of Hyperlinks and calling each Hyperlink, copying the web page and pasting onto individual spreadsheets. Can this be achieved using VBA.

  2. #2
    Join Date
    Aug 2011
    Posts
    540

    Re: How to copy a web page in Excel using VBA

    You can do that with two commands. That is // SelectAll and // Copy selection. Or else you can simply import the data inside the sheet. For that click on DATA > Import external data > New Web query.

  3. #3
    Join Date
    Aug 2011
    Posts
    580

    Re: How to copy a web page in Excel using VBA

    Go on google and search for the codes. There are many sites which gives you reference code for vba to pull the entire website inside a excel sheet. There will be some code which will work on the base of content you are trying to copy.

Similar Threads

  1. Excel is only printing half page in Microsoft Excel
    By (Cowherd) in forum MS Office Support
    Replies: 2
    Last Post: 17-02-2012, 04:31 PM
  2. Replies: 2
    Last Post: 17-02-2012, 02:09 PM
  3. How to copy content from web page without formatting?
    By bharti_rajpal in forum Technology & Internet
    Replies: 5
    Last Post: 13-01-2010, 05:01 PM
  4. How do I copy an entire web page?
    By Zool in forum Technology & Internet
    Replies: 3
    Last Post: 29-07-2009, 03:32 PM
  5. Replies: 0
    Last Post: 18-03-2009, 10:00 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,964,957.61165 seconds with 17 queries