+ Reply to Thread
Results 1 to 7 of 7

Google search of text in cell by clicking on that cell

Hybrid View

  1. #1
    Registered User
    Join Date
    09-10-2024
    Location
    Madison, MS
    MS-Off Ver
    365
    Posts
    6

    Google search of text in cell by clicking on that cell

    How do I make a search so the user can click on cell A2 and it does a Google search for that text plus the text in the cell B2 next to it?
    Attached Files Attached Files

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

    Re: Google search of text in cell by clicking on that cell

    This would require VBA, if possible. Shall I move the thread for you?
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,944

    Re: Google search of text in cell by clicking on that cell

    Try this in the worksheet module
    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
        If Target.Count = 1 Then
            If Not Intersect(Target, Range("A:A")) Is Nothing Then
                 If Target.Row > 1 Then
                    If Target <> "" And Target.Offset(, 1) <> "" Then
                        ThisWorkbook.FollowHyperlink Address:="https://www.google.com/search?q=" & Target.Value & "+" & Target.Offset(0, 1).Value
                    End If
                End If
            End If
        End If
    End Sub
    BSB

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,944

    Re: Google search of text in cell by clicking on that cell

    @AliGW - Apologies, I hadn't refreshed the screen and seen your message above before posting.

    BSB

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,996

    Re: Google search of text in cell by clicking on that cell

    That's OK - it's not a thread stopper! I'm going to move the thread, anyway.

  6. #6
    Registered User
    Join Date
    09-10-2024
    Location
    Madison, MS
    MS-Off Ver
    365
    Posts
    6

    Re: Google search of text in cell by clicking on that cell

    I was hoping to do it without VBA but this will work. thanks guys!

  7. #7
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,944

    Re: Google search of text in cell by clicking on that cell

    A VBA free option would be to put hyperlinks in another column and use that to click on rather than column A.

    For example, the below in C2 and copied down.
    Formula: copy to clipboard
    =HYPERLINK("https://www.google.com/search?q="&A2&"="&B2)


    This comes with the added maintenance of having to apply the formula to new rows of data, whereas the VBA option would account for that automatically.

    There are probably other ways, but that's two options for ya.

    BSB

+ 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] clicking second search results from Google search
    By Megatronixs in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-10-2015, 12:36 AM
  2. Replies: 1
    Last Post: 02-03-2015, 06:44 AM
  3. Pass the value of a cell to a msg or text box by clicking the cell with the value
    By Tanner2004 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-14-2013, 12:35 AM
  4. Pass the value of a cell to a msg or text box by clicking the cell with the value
    By Tanner2004 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-13-2013, 11:34 PM
  5. Macro help - use cell contents for Google search
    By tomwsanchez in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-11-2012, 08:26 PM
  6. How to imput cell data/text by clicking in cell
    By richard11153 in forum Excel General
    Replies: 7
    Last Post: 11-28-2008, 08:44 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