+ Reply to Thread
Results 1 to 15 of 15

web query will not load page

  1. #1
    Forum Contributor
    Join Date
    11-14-2014
    Location
    uk
    MS-Off Ver
    Excel 2010
    Posts
    100

    web query will not load page

    Hi I'm using Excel 2007 to try and web query the page shown below ..

    is there some reason why it will not let me import the page ?

    Instead of letting me import the page I am forced to download it.

    https://poloniex.com/public?command=returnTicker

    thanks for any advice

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    82,903

    Re: web query will not load page

    Please update your user profile version of Office from 7 to Excel 2007.

    Instructions on attaching your workbook are at the top of the page.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    11-14-2014
    Location
    uk
    MS-Off Ver
    Excel 2010
    Posts
    100

    Re: web query will not load page

    Thanks

    I have also attached screen shots of where I have been trying to get this to work.
    Attached Images Attached Images
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,155

    Re: web query will not load page

    Your URL points to a JSon file which is just like an ordinary text file, that's why you can not import it as you think.

    But, you can import the related datas stored in the JSon file using VBA in several ways...... One of them can be seen in the attached workbook.
    Attached Files Attached Files
    Last edited by Haluk; 02-01-2020 at 02:52 PM.

  5. #5
    Forum Contributor
    Join Date
    11-14-2014
    Location
    uk
    MS-Off Ver
    Excel 2010
    Posts
    100

    Re: web query will not load page

    Thank you so much this is perfect, I will now look into adjusting that macro so that it will loop and update rather than start from the button and stop.
    Last edited by semajjames; 02-02-2020 at 08:32 AM.

  6. #6
    Forum Contributor
    Join Date
    11-14-2014
    Location
    uk
    MS-Off Ver
    Excel 2010
    Posts
    100

    Re: web query will not load page

    Ok so I have added a loop on a timer and made the code run on start but in doing so it now enters the data in the next column's along instead of removing and replacing ?
    Attached Files Attached Files

  7. #7
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,155

    Re: web query will not load page

    You need to use a proper "Application.OnTime" method.....

    Check the attached file, hitting the "Start" button, data will be refreshed with 1 minutes time interval. You can hit the "Stop" button to cancel refreshing process whenever you wish.


    .
    Attached Files Attached Files
    Last edited by Haluk; 02-02-2020 at 01:12 PM.

  8. #8
    Forum Contributor
    Join Date
    11-14-2014
    Location
    uk
    MS-Off Ver
    Excel 2010
    Posts
    100

    Re: web query will not load page

    That is great, There is just one thing: I need it to work on just one sheet ,, at this time it enters the data into any sheet that is open.

    I tried this

    Please Login or Register  to view this content.

    and this also

    Please Login or Register  to view this content.
    This I have not tried because I do not know which bits to replace with your code.

    Please Login or Register  to view this content.

    thanks again
    Last edited by semajjames; 02-02-2020 at 08:03 PM.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    82,903

    Re: web query will not load page

    Administrative Note:

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)

  10. #10
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,155

    Re: web query will not load page

    @semajjames;

    Try the attached file...... data will be displayed on Sheet2 of the workbook which houses the VBA code.

    .
    Attached Files Attached Files
    Last edited by Haluk; 02-03-2020 at 04:33 AM.

  11. #11
    Forum Contributor
    Join Date
    11-14-2014
    Location
    uk
    MS-Off Ver
    Excel 2010
    Posts
    100

    Re: web query will not load page

    perfect thanks

  12. #12
    Forum Contributor
    Join Date
    11-14-2014
    Location
    uk
    MS-Off Ver
    Excel 2010
    Posts
    100

    Re: web query will not load page

    So for all this time this worked tho now the macro has stopped working from what I can see that the web page is still the same but I should think that it is only the web page that could have changed.

    I have changed from excel 2007 to 2010

    anyway the macro code is well beyond me could anyone see why ?
    Last edited by semajjames; 05-21-2021 at 06:26 PM.

  13. #13
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow Re: web query will not load page


    Hi,

    just declare the variable r as Long rather than Byte !

  14. #14
    Forum Contributor
    Join Date
    11-14-2014
    Location
    uk
    MS-Off Ver
    Excel 2010
    Posts
    100

    Re: web query will not load page

    thanks that worked,

    so what changed to make that adjustment needed ?

    excel version ?

    Oh the imported document got longer maybe ?
    Last edited by semajjames; 05-21-2021 at 10:34 PM.

  15. #15
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow Re: web query will not load page


    First as Excel can contain more than one million rows it was a bad idea to use a variable limited to 255 ‼

    And as you can see yourself just clicking on the original webpage link there are far more than 255 elements !

    And last but not least, the weird in this VBA procedure is using a random number to download those elements
    as you can see just comparing the original URL and the one used within the VBA procedure …
    Last edited by Marc L; 05-22-2021 at 07:52 AM. Reason: correction as wrong assertion …

+ 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. [SOLVED] Listbox on a different page on userform - load when page opens only?
    By superlative in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-11-2020, 05:20 AM
  2. [SOLVED] Power Query - load to workbook and create query table
    By jaryszek in forum Excel General
    Replies: 1
    Last Post: 12-10-2019, 11:09 AM
  3. Wait for web page to load
    By ScabbyDog in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-10-2018, 12:15 PM
  4. Replies: 2
    Last Post: 11-16-2016, 08:12 AM
  5. Power query load to connection
    By stephme55 in forum Excel General
    Replies: 1
    Last Post: 08-15-2016, 05:10 PM
  6. [SOLVED] Trying to get a loop to wait for a web page to load.
    By Habanero Time in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-09-2013, 01:46 AM
  7. page load problems
    By steve263 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-20-2006, 04:07 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