Can anyone help with this please?
This VBA project is meant to create a Google search string which opens directly in Google search engine in the users default browser. At the moment the search string is not producing the double speech marks around EACH value (which i want to keep). So if the value entered in the input box is 123456 the search string is: "123456 | 12". I am looking for this: "123456" | "12"
Any help is much appreciated.
Thanks
This VBA project is meant to create a Google search string which opens directly in Google search engine in the users default browser. At the moment the search string is not producing the double speech marks around EACH value (which i want to keep). So if the value entered in the input box is 123456 the search string is: "123456 | 12". I am looking for this: "123456" | "12"
Code:
Sub Google_Search_v1()
Dim Target As Variant
Dim LValue1 As String
Dim MyURL As String
MyURL = "https:/google.com/#q="
Target = Application.InputBox("Enter Number: ")
If Target = 0 Then Exit Sub
LValue1 = """""" & Target & """" & " | " & """" & Left(Target, 2) & """"""
ActiveWorkbook.FollowHyperlink Address:=MyURL & LValue1
End Sub
Any help is much appreciated.
Thanks