+ Reply to Thread
Results 1 to 8 of 8

Using Macro to add google's first image link to Excel

  1. #1
    Registered User
    Join Date
    08-20-2017
    Location
    riyadh
    MS-Off Ver
    2013
    Posts
    5

    Using Macro to add google's first image link to Excel

    Hello Everyone


    i'm trying to use Macro to add the first image link from google to b1 for every a1 value.


    i have more than 1000 value that need images.

    can you please help on that?

    i use windows 10 and MS 365

    please support

    thanks

  2. #2
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Using Macro to add google's first image link to Excel

    Hello try this code
    Please Login or Register  to view this content.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  3. #3
    Registered User
    Join Date
    08-20-2017
    Location
    riyadh
    MS-Off Ver
    2013
    Posts
    5

    Re: Using Macro to add google's first image link to Excel

    Quote Originally Posted by YasserKhalil View Post
    Hello try this code
    Please Login or Register  to view this content.


    Hello Sir

    Thanks for you reply, i'm receiving the below error. can you please advise?

    wQmkqDj.png

    Thanks

  4. #4
    Registered User
    Join Date
    08-20-2017
    Location
    riyadh
    MS-Off Ver
    2013
    Posts
    5

    Re: Using Macro to add google's first image link to Excel

    I have solved the above error. but it's giving me Google's logo image.

    Can you please help me modify it to get the accurate image? Plus I need to modify it to get large images. Can you please support on that?

  5. #5
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Using Macro to add google's first image link to Excel

    Sorry for being late in reply
    It was working before and I tried to fix it but couldn't find a way
    Waiting for experts to share

    I have posted a thread here too
    http://chandoo.org/forum/threads/gra...-search.35548/

  6. #6
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Using Macro to add google's first image link to Excel

    Yasser,
    The first error is caused by using early binding. The OP has to reference these classes or objects in their PC before they run the code. It is best practice to use early binding for development as you can benefit from Intellisense and change it to late binding when you ship it to a client. So, dim all objects as genetic.

  7. #7
    Registered User
    Join Date
    08-20-2017
    Location
    riyadh
    MS-Off Ver
    2013
    Posts
    5

    Re: Using Macro to add google's first image link to Excel

    Quote Originally Posted by YasserKhalil View Post
    Sorry for being late in reply
    It was working before and I tried to fix it but couldn't find a way
    Waiting for experts to share

    I have posted a thread here too
    http://chandoo.org/forum/threads/gra...-search.35548/
    Hello Sir,

    I'm using the below code, it was given to me on this thread: https://stackoverflow.com/questions/...03118_45809181
    however, this code works fine for images, except that it stops when it comes to a value that can't be found on google.
    can you modify it to not stop even while facing such cells?
    HTML Code: 
    for example: I have 1000 values and A30 value can't be found on google so the macro will stop on cell A30 and give you an error.
    can you fix that Sir?

    Thanks

  8. #8
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Using Macro to add google's first image link to Excel

    May be putting this statement before the loop would solve the problem

    Please Login or Register  to view this content.

+ 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. Autoimport Google Image Search Result into Excel
    By awesummusik in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-14-2021, 12:29 PM
  4. Google image search from cell contents of excel file
    By merQrey in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 07-24-2020, 01:01 AM
  5. Need Macro to link GPS data from excel to Google Maps
    By JohnGrosse in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-07-2015, 05:12 PM
  6. Replies: 0
    Last Post: 07-08-2014, 06:27 AM
  7. Macro NEED Remake- search in google and copy link
    By kunmateo93 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-06-2014, 12:19 PM

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