Skip to content

Instantly share code, notes, and snippets.

@DuongAQ
Created August 8, 2018 07:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DuongAQ/6bb8f308f63ffbc515b2a4791de4a9d3 to your computer and use it in GitHub Desktop.
Save DuongAQ/6bb8f308f63ffbc515b2a4791de4a9d3 to your computer and use it in GitHub Desktop.
Sub Open_Chrome() 'Gọi ra chương trình Chrome từ VBA Excel
Dim Dir As String 'Biến tên đường dẫn
Dim fileName As String 'Biến tên chương trình
Dir = "C:\Program Files (x86)\Google\Chrome\Application" 'Địa chỉ đường dẫn tới chương trình
fileName = "chrome.exe" 'Tên file chạy chương trình
Shell Dir & "\" & fileName 'Lệnh gọi chương trình Chrome
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment