PDA

View Full Version : Solved: Display Calculotor



av8tordude
05-10-2010, 12:42 PM
Is there a code that will display the calculator installed a computer?

GTO
05-10-2010, 01:14 PM
See the vba help topics for Shell Function and the example under SendKeys.


Sub exa1()
Dim lCalc As Long

lCalc = Shell("C:\WINDOWS\System32\CALC.EXE", 1) ' Run Calculator.
End Sub


Hope that helps,

Mark

av8tordude
05-10-2010, 02:14 PM
Thank you Mark

GTO
05-10-2010, 03:06 PM
You are very welcome :-) :beerchug: