Hi Guys,

I've created a macro where the Textbox.text ( in a form ) would go into a variable and then the variable would become the Search query to look when running a search in Google, Bing or Yahoo, like this:

Code:
ThisWorkbook.FollowHyperlink Address:="http://www.google.com/search?q=" & TextBox3.Text, NewWindow:=True
I have this in a command button and it works perfectly. My problem is that the text is not getting pasted exactly as it is entered in the textbox and I don't know why. It should be just a copy/paste but it's not.

Here is what happens:

If my text box has the following string: "Java AND Linux AND C++ AND C#"

Or any other text that has the "+" or the "#" it just skips it and replaces it with a blank space instead of running a search in Google for that specific query : "Java AND Linux AND C++ AND C#" it shows like:
"Java AND Linux AND C AND C " or sometimes the browser just freezes and does nothing, It's like the search query is not building at all.

It just happens with terms like C# or C++


I think I need to change the way I search on Google, but don't know how.

Any suggestions?