title: Interact with Google Chrome on VBA
body: <p>From an excel file in VBA, I would like to click on the big button on this webpage (<a href="https://www.ilovepdf.com/jpg_to_pdf" rel="nofollow noreferrer">https://www.ilovepdf.com/jpg_to_pdf</a>), select a file from my computer to download to this website (select the right path), validate, download the new file, then close the tab.</p>
  
  <p>I have for the moment manage to open the browser but I can interact with the website..</p>
  
  <p>Thanks for your help :)</p>
  
  <pre><code>Sub ConvertFile()
  
  
  ChromeLocation = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" 'Location of Chrome.exe in your PC
  MyURL = "https://www.ilovepdf.com/jpg_to_pdf" 'URL that you would like to open; you may also use a variable for this, or a pointer to the location of the URL
  Shell (ChromeLocation &amp; " -url " &amp; MyURL)
  
  
  End Sub
  </code></pre>