+ Reply to Thread
Results 1 to 8 of 8

image auto downlod from multiple google folder link

  1. #1
    Registered User
    Join Date
    07-11-2016
    Location
    Delhi, India
    MS-Off Ver
    7
    Posts
    47

    image auto downlod from multiple google folder link

    I have a worksheet with folder names and image URL. I want to download each image to the specific folder from google drive link so that the outcome would look like this:

    Folder Name Image URL store link(not in worksheet)
    ----------- ------------ -----------------------------------
    example1 https://drive.google.com/drive/folders/example1 C:\images\example1\example1.jpg
    example2 https://drive.google.com/drive/folders/example2 C:\images\example2\example2.jpg
    example3 https://drive.google.com/drive/folders/example3 C:\images\example3\example3.jpg
    example4 https://drive.google.com/drive/folders/example4 C:\images\example4\example4.jpg
    example5 https://drive.google.com/drive/folders/example5 C:\images\example5\example5.jpg


    Each link of google drive can have multiple images
    I've found this VBA code, but I don't know how to add a method to creat folders: attaching file with code
    Attached Files Attached Files
    Last edited by khushboo#; 06-01-2018 at 11:14 AM.

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,016

    Re: image auto downlod from multiple google folder link

    .
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-11-2016
    Location
    Delhi, India
    MS-Off Ver
    7
    Posts
    47

    Re: image auto downlod from multiple google folder link

    Hi Logit,


    thanks for your response.

    This code is giving me "bad file name or number" error.

    nad can you check with code in sample file attached, as even that need little modification as well, coz now even after execution i am not seeing any photos downloaded.

  4. #4
    Registered User
    Join Date
    07-11-2016
    Location
    Delhi, India
    MS-Off Ver
    7
    Posts
    47

    Re: image auto downlod from multiple google folder link

    Hi,

    any other code, which can help me to download images from google drive link, will be really great .
    inculding one sample shared google link: https://drive.google.com/drive/folde...jYOWtldaDD--jy

  5. #5
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,016

    Re: image auto downlod from multiple google folder link

    .
    You'll need to change the path in this line of code to match your computer :

    Please Login or Register  to view this content.
    As is, the above line is saving the file to my computer's name which is MY. Your computer most likely is named something different. It will be the name shown when you first boot up your computer.
    If you are using WIN 10 for example it will say "Welcome My". Change the MY to whatever your computer name is.

    And of course, it is saving the file to the Desktop in the above line.


    Re-check the spelling of everything in the path line (shown above - for your computer) and recheck the Sheet Name as well. Is the sheet in question actually called SHEET1 ... or is it called something else
    like perhaps "INVENTORY' or "DATABASE" or ???

    Make certain the cell description in the path (shown as B2 above) is the actual cell you have the File Name entered.

    Also keep in mind there are certain symbols that cannot be used in a file name because Windows won't accept them.

    These are the common forbidden symbols folks try to use in creating file names :

    Windows:

    < (less than)
    > (greater than)
    : (colon - sometimes works, but is actually NTFS Alternate Data Streams)
    " (double quote)
    / (forward slash)
    \ (backslash)
    | (vertical bar or pipe)
    ? (question mark)
    * (asterisk)

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: image auto downlod from multiple google folder link

    Hello khushboo,

    The example URLs in both your post and the workbook are non existent - error 404. This is the reason why the code fails. If you do not provide accurate information then we can not provide accurate answers.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  7. #7
    Registered User
    Join Date
    07-11-2016
    Location
    Delhi, India
    MS-Off Ver
    7
    Posts
    47

    Re: image auto downlod from multiple google folder link

    Hi Leith,

    sample link in example are non-existence.
    providing a link of shared google drive folder.
    https://drive.google.com/drive/folde...jYOWtldaDD--jy you need to login to your google account(perhaps gmail account) to access this link.

  8. #8
    Registered User
    Join Date
    07-11-2016
    Location
    Delhi, India
    MS-Off Ver
    7
    Posts
    47

    Re: image auto downlod from multiple google folder link

    Hi logit,

    thanks alot, that working perfectly, mistake which i was made, that i used "C:\Users\My\Desktop" instead of "C:\Users\My\Desktop\".

    can you kindly check with sample file code to see, if any modification can be done to make it work, and to merge with your given code.

    thanks in advance.

+ 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. Return first image link from google search in excel using vba
    By vivis in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 12-06-2022, 01:01 AM
  2. [SOLVED] Insert the first image found with image search (e.g google) with criteria taken from cell.
    By themob212 in forum Excel Programming / VBA / Macros
    Replies: 31
    Last Post: 04-14-2021, 12:29 PM
  3. Using Macro to add google's first image link to Excel
    By deekay963 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-23-2017, 07:33 AM
  4. Vlookup into an image folder and importing the image into the spreadsheet?
    By talan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-30-2017, 12:54 PM
  5. Problem with image File Link in Cell not opening image for preview
    By Orada in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-24-2015, 09:33 AM
  6. Replies: 0
    Last Post: 07-08-2014, 06:27 AM
  7. how to link a cell to the specific image file to other folder
    By asadullah in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-26-2014, 06:35 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