I'm trying to implement a Google Search method using VBA in Excel.
I would like to type a certain word/words in the pop-up window, whereupon it Google searches the word/words + a predetermined phrase.
For example, if I type "John Doe", I would like the Google search to be "John Doe License and Registration", without having to type "License and Registration" every time I type a name.
How do I add the "License and Registration" in my code?
Private Sub CommandButtonSearch_Click()
Dim query As String
Dim search_string As String
Dim googleChromePath As String
query = InputBox("Enter your keyword", "Google Search")
search_string = Replace(query, " ", "+")
googleChromePath = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
Shell (googleChromePath & " -url http://google.com/search?q=" & search_string)
End Sub


