Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 88111

VBA Open Google Chrome opens in the taskbar

$
0
0

I am using this code below to open a website with Chrome via VBA, however Chrome starts in the taskbar and I have to click on the icon to open the actual Chrome window. Do I need to add something in the code to have Chrome opened maximized?

Private Sub CommandButton11_Click()
Dim chromePath As String
  chromePath = """C:\Program Files\Google\Chrome\Application\chrome.exe"""
  Shell (chromePath & " -url https://google.com")
  Unload Me
End Sub

Viewing all articles
Browse latest Browse all 88111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>