+ Reply to Thread
Results 1 to 2 of 2

How to do multiple Web Imports into a single Worksheet

  1. #1
    Registered User
    Join Date
    10-12-2010
    Location
    Ireland
    MS-Off Ver
    Excel 2007
    Posts
    1

    How to do multiple Web Imports into a single Worksheet

    Hi Guys,

    I have a task that I need to complete but I can't find how to get done. I've searched but I can't find anything that suits my needs. I'm new to Macros and I have't a clue about VBA

    I have an a site on our companies intranet that has a list of modules broken up into subpages (i.e 0, A-Z). I need to import the content of those subpages into a single Excel worksheet.

    The web addresses are all similar except they increment alphabetically at the end :-
    The problem I'm having is looping the imports and adding them to the blank part of the same worksheet

    Any help would be greatly appreciated!!

    thanks

    Wess..

  2. #2
    Registered User
    Join Date
    10-11-2010
    Location
    Plano, Texas
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: How to do multiple Web Imports into a single Worksheet

    You could select locations on a blank worksheet and use the Excel Web Query function :
    <Data><Import External Data><New Web Query>

    Find a cell for the location of the upper-left corner of the block of data you want.
    Using the Excel draw-down menus select the options above. (This will open a small window to your web browser.)
    Navigate to the web page with the data you need and click on the pointer(You will see them on this temporary window) that selects the data block you need.
    Now you can click on the import button at the bottom of the window.
    You will be prompted for options that are self explaining, but read them carefully.

    This will import the selected data from the web into your spreadsheet.
    You can create multiple Import by simply selecting the target cell prior to creating the new Web Query.
    These queries can then be updated with VBA by selecting the target cell and using the statement

    Selection.QueryTable.Refresh BackgroundQuery:=False

    or you can simply click on the Refresh All icon on the Excel "External Data" tool bar.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1