+ Reply to Thread
Results 1 to 5 of 5

Web query Looping from table selection

  1. #1
    Registered User
    Join Date
    06-15-2013
    Location
    Spain
    MS-Off Ver
    Excel 2003
    Posts
    17

    Web query Looping from table selection

    Hi All

    I am working in a table for making predictions of soccer teams results based on basics statistics.
    I know this is a difficult task and I will appreciate any advice.

    What I am looking for is a way to select the Teams that I want to update their results (from a lis of 8000!). The teams list is in the worksheet "Countries and teams".

    The selected Teams could be displayed in the "Main" worksheet or maybe in the same "Countries and teams" worksheet (using a checkbox, conditional format, or any other method of highlighting the selected teams).

    Then the "Update" macro will loop through those selected Teams, taking the Country and the Team parameters to fill the web query URL parameters in the macro (Now I am using a listbox in C1 and E1 to select the Country and the Team manually).

    When the first Team data is updated, the macro will analyze the "Has Occurred", "Current Delay" and "Highest Delay" data based on the parameters prefixed in the "Main" Worksheet.

    If this Team complies with preset parameters in any of the 3 markets (Market 1, Market 2 and Market 3), then transposes the respective column (or columns) on the sheet "alarms".

    For example:
    The first Team selected is Real Madrid, then click "Update" button. The data is updated and the "Has Occurred", "Current Delay" and "Highest Delay" values in any of the three markets do not match the "Main" preset parameters. Then go to the next Team, and so on until one Team complies with preset parameters and transpose the column(s) to "Alarms" sheet. After that, is the turn of the next team, until all teams selected was analyzed.

    when all selected teams was analyzed, if in the next update proccess any of the alarms is outdated (the parameters are not matching with the "Main" worksheet parameters, then this alarm should be deleted).

    Sorry for my semi translated english

    Thank you All in advance!
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    06-15-2013
    Location
    Spain
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Web query Looping from table selection

    Sorry for cross posting, I am novel in forums.
    Please, moderator can delete this thread?

  3. #3
    Registered User
    Join Date
    06-15-2013
    Location
    Spain
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Web query Looping from table selection

    I asked for delete the thread in the other forums because I didn't know about cross posting, sorry.

    http://www.mrexcel.com/forum/excel-q...selection.html
    http://www.ozgrid.com/forum/showthread.php?t=199709
    http://stackoverflow.com/questions/3...able-selection
    http://www.vbaexpress.com/forum/show...able-selection

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,718

    Re: Web query Looping from table selection

    You are allowed to cross post. The rule is that if you cross post you just need to tell us. There is no need to delete your thread.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  5. #5
    Registered User
    Join Date
    06-15-2013
    Location
    Spain
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Web query Looping from table selection

    Hi 6StringJazzer

    Thanks for the response. This was my first and will be my last cross posting. I'm sure of it.

    Regards

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 12-05-2012, 03:48 PM
  2. Web Query Table Selection Lost when Excel Closes
    By mnh2374 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-24-2012, 04:33 PM
  3. Looping VBA Query
    By zhb12810 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-09-2012, 07:24 PM
  4. Looping Web Query
    By juanpablo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-31-2012, 09:18 AM
  5. VBA Looping Query
    By mrgoodwords in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-23-2010, 08:00 PM
  6. Unable to do a range selection in a SQL Query Table
    By hemants in forum Excel General
    Replies: 0
    Last Post: 12-07-2010, 03:05 PM
  7. looping through a selection
    By sa02000 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-27-2007, 03:14 PM
  8. [SOLVED] Looping a range selection
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-20-2006, 10:55 AM

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