Saturday, April 20, 2019

VBA Code to Open Google Chrome for Search

  • Insert a new module in and paste above code into it.  
Now, close VB editor and run this macro from macros option in developer tab.

How it works

When you run this code it shows you an input box to enter your query. And you need to enter your query in that input box and click OK.
Once you click OK, this code creates a search URL syntax using the text you have entered.
And, in the end redirects Chrome to that URL to give you result for query you have entered.

No comments:

Post a Comment