Efetue pesquisas no Google a partir de seus Apps no MS Office:
Série Donut Project
Sub SearchWindow32()
Dim chromePath As String
Dim search_string As String
Dim query As String
Let query = InputBox("Digite o que deseja procurar:", "Google Search")
Let search_string = query
Let search_string = Replace(search_string, " ", "+")'Uncomment the following line for Windows 64 versions and comment out Windows 32 versions'
'Let chromePath = "C:Program FilesGoogleChromeApplicationchrome.exe"
'Uncomment the following line for Windows 32 versions and comment out Windows 64 versions
'Let chromePath = "C:Program Files (x86)GoogleChromeApplicationchrome.exe"
Shell (chromePath & " -url http://google.com/#q=" & search_string)
End Sub
Versão Win 32
Sub SearchWindow32()
Dim chromePath As String
Dim search_string As String
Dim query As String
Let query = InputBox("Digite o que deseja procurar", "Google Search")
Let search_string = query
Let search_string = Replace(search_string, " ", "+")
'Uncomment the following line for Windows 64 versions and comment out Windows 32 versions'
Let chromePath = "C:Program FilesGoogleChromeApplicationchrome.exe"
'Uncomment the following line for Windows 32 versions and comment out Windows 64 versions
Let chromePath = "C:Program Files (x86)GoogleChromeApplicationchrome.exe"
Shell (chromePath & " -url http://google.com/#q=" & search_string)
End Sub
Versão Win 64
Sub SearchWindow64()
Dim chromePath As String
Dim search_string As String
Dim query As String
Let query = InputBox("Digite o que deseja procurar", "Google Search")Let search_string = query
Let search_string = Replace(search_string, " ", "+")
'Uncomment the following line for Windows 64 versions and comment out Windows 32 versions
Let chromePath = "C:Program FilesGoogleChromeApplicationchrome.exe"
'Uncomment the following line for Windows 32 versions and comment out Windows 64 versions
'Let chromePath = "C:Program Files (x86)GoogleChromeApplicationchrome.exe"
Shell (chromePath & " -url http://google.com/#q=" & search_string)
End Sub
Conheça também:
Veja outros códigos:
Série de Livros nut Project
Série DONUT PROJECT 2015
Clique aqui e nos contate via What's App para avaliarmos seus projetos
Nenhum comentário:
Postar um comentário