title: Opening browser on a variable page using vbscript
body: <p>I'm trying to write a bit of VBScript to open a browser on a specific webpage. Ultimately this webpage would be unique per script. At the moment I have the following code which works:</p>
  
  <pre><code>Dim objShell
  
  objShell = CreateObject("Shell.Application")
  objShell.ShellExecute("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe", "www.google.ie", "", "", 1)
  </code></pre>
  
  <p>But I would like to get the following working:</p>
  
  <pre><code>Dim iURL As String
  Dim objShell
  
  iURL = "www.google.ie"
  
  objShell = CreateObject("Shell.Application")
  objShell.ShellExecute("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe", iURL, "", "", 1)
  </code></pre>
  
  <p>Any ideas what it is I'm doing wrong? Any help would be greatly appreciated.</p>