Run a program

  • Thread starter Thread starter Jone
  • Start date Start date
J

Jone

What code do I write when I want to open a program from my computer for ex. I
want to open up the windows calculator thans is in
C:\WINDOWS\system32\calc.exe
 
Jone said:
What code do I write when I want to open a program from my computer for ex. I
want to open up the windows calculator thans is in
C:\WINDOWS\system32\calc.exe

Shell

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
 
The vba code would be

SHELL "C:\WINDOWS\system32\calc.exe"

Tony was a bit brief in his response. Try looking up Shell in the VBA help.

--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..
 
Back
Top