Consulting

Results 1 to 4 of 4

Thread: Solved: Display Calculotor

  1. #1

    Solved: Display Calculotor

    Is there a code that will display the calculator installed a computer?

  2. #2
    Knowledge Base Approver VBAX Guru GTO's Avatar
    Joined
    Sep 2008
    Posts
    3,368
    Location
    See the vba help topics for Shell Function and the example under SendKeys.

    [vba]
    Sub exa1()
    Dim lCalc As Long

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

    Hope that helps,

    Mark

  3. #3
    Thank you Mark

  4. #4
    Knowledge Base Approver VBAX Guru GTO's Avatar
    Joined
    Sep 2008
    Posts
    3,368
    Location
    You are very welcome :-)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •