I currently have a button that opens a website. Lets stay google.com



My code works but if the user hits the button multiple times it keeps opening a new web instance. Meaning if they click it a few times then google.com will open a few times.

I am trying to figure out a code that checks to see if google.com is already open and if not then open google.com

I have two options that can open the website but no idea how to check if it google.com is already open.

Dim theWebSite As String
theWebSite = "http://www.google.com"
Call Shell("explorer.exe " & theWebSite, vbNormalFocus)

or

Application.followhyperlink "http://www.google.com