How can you make a command button open another .exe? For example, is I wanted a button that when clicked would open the windows calculator. Thanks in advance!
John
Printable View
How can you make a command button open another .exe? For example, is I wanted a button that when clicked would open the windows calculator. Thanks in advance!
John
Code:Private Sub Command1_Click()
Shell "Calc", vbNormalFocus
End Sub
in windows NT/2000 use this line
Code:Shell "C:\WINNT\System32\calc.exe"
If you're not using windows NT/2K then you'll have to use the Command Line. Using the Shell command is exuivilent to selecting Run from the start menu and typing in the String after the Shell Keyword