+ Reply to Thread
Results 1 to 10 of 10

Downloading a file with a dynamic URL - Bad loop

  1. #1
    Registered User
    Join Date
    04-01-2021
    Location
    Marseille
    MS-Off Ver
    2013
    Posts
    3

    Smile Downloading a file with a dynamic URL - Bad loop

    hello,

    I'm looking to download files from queries.

    Let me explain. I have an excel file which contains urls which give directions on google maps.
    -Column A: the URL of Google Maps
    -Column B: identifier of the route but also name of the future output file.

    My links work and give me my route between each point of origin and destination.

    I send this link to a site which turns it into a track (route) with the extension .gpx
    The objective then being to visualize these routes in GIS software.

    I give you the code that I built by compiling several sources.

    it pretty much works, it's just the loop that doesn't work because I would like the query to process the items in cells A1 and B1 then A2 and B2.

    There, the loop

    Fictitious content of the spreadsheet:


    Code

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    08-26-2016
    Location
    UK
    MS-Off Ver
    O365
    Posts
    260

    Re: Downloading a file with a dynamic URL - Bad loop

    a guess:
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-01-2021
    Location
    Marseille
    MS-Off Ver
    2013
    Posts
    3

    Re: Downloading a file with a dynamic URL - Bad loop

    Great ! thank you very much p45cal !!!!
    The answer is there.

    I had to move a sequence

    Please Login or Register  to view this content.
    After "For Each..."



    Thanks a lot !

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

    Wink Re: Downloading a file with a dynamic URL - Bad loop


    Salut _yuck_ !

    J'ai reconnu une ligne dans le code …

  5. #5
    Registered User
    Join Date
    04-01-2021
    Location
    Marseille
    MS-Off Ver
    2013
    Posts
    3

    Re: Downloading a file with a dynamic URL - Bad loop

    Haaahah
    Énorme Marc L
    Et oui
    J’avais perdu le code final... j’ai recomposé quelque chose à partir de tous les échanges sur développez
    Et vu que j’avais un peu honte de revenir demander quasi la même chose

    Bref, je n’étais quand même pas loin !

    Et oui, je me doute que le code te parle !
    🤣

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

    Arrow Re: Downloading a file with a dynamic URL - Bad loop


    Congrats to p45cal to have understood your need !

    Cheers …

  7. #7
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,725

    Re: Downloading a file with a dynamic URL - Bad loop

    Messieurs - moi, je connais le français, mais ceci est un forum anglophone, donc tapez vos réponses en anglais, svp.
    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.

  8. #8
    Forum Contributor
    Join Date
    08-26-2016
    Location
    UK
    MS-Off Ver
    O365
    Posts
    260

    Re: Downloading a file with a dynamic URL - Bad loop

    Messieurs…
    Mille sabords! Tonnerre de Brest!

  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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,725

    Re: Downloading a file with a dynamic URL - Bad loop

    Ben, ouais, et vive le Comté!
    Last edited by AliGW; 04-01-2021 at 01:22 PM. Reason: Typo

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

    Arrow Re: Downloading a file with a dynamic URL - Bad loop


    It was just an 'aparté' to surprise an old chap

+ 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. When downloading a text file how do I stop the request for the file name?
    By j_Southern in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-26-2017, 04:58 AM
  2. Replies: 9
    Last Post: 12-23-2016, 10:54 PM
  3. [SOLVED] VBA Query for Downloading a XLS File
    By sathis in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-17-2015, 07:50 AM
  4. downloading file from Web
    By headhair in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-01-2014, 07:28 AM
  5. Task Scheduler Downloading an Empty, Bad File Before Actual File Exists...Not Good
    By jamesdeuce in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-23-2014, 01:25 PM
  6. Downloading a CSV file from the internet
    By arleutwyler in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-04-2013, 10:57 AM
  7. Help with Downloading A CSV file
    By kchappy32 in forum Excel General
    Replies: 0
    Last Post: 06-05-2012, 03:24 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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1