Noxqss38242
Board Regular
- Joined
- Sep 15, 2017
- Messages
- 225
- Office Version
- 2016
Currently I'm trying to use this code:
Private Sub CommandButton1_Click()
Sub Open_Program()
Shell ("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe")
End Sub
HOWEVER, when I run it, I get a "compile error: Expected End Sub" error message.
Just trying to figure out how to launch any program on the computer when knowing the path for it.
Private Sub CommandButton1_Click()
Sub Open_Program()
Shell ("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe")
End Sub
HOWEVER, when I run it, I get a "compile error: Expected End Sub" error message.
Just trying to figure out how to launch any program on the computer when knowing the path for it.