Results 1 to 8 of 8
  1. #1
    Join Date
    Sep 2002
    Posts
    8

    Unanswered: Open external program from CmdButton

    I am brain challenged at the moment. I want a pop up calculator to appear on Cmd_Click() The calculator .exe is C:\Windows....

    Any suggestions?

  2. #2
    Join Date
    Feb 2002
    Posts
    108

    Short and Swett and Works

    Dim stappname As String

    stappname = "C:\Program Files\Microsoft Streets & Trips\Streets.exe"
    Call Shell(stappname, 1)

  3. #3
    Join Date
    Feb 2002
    Posts
    108

    I mean "Sweet"

    Anybody have code to clumsy fingers ?

  4. #4
    Join Date
    Oct 2002
    Location
    Leicester - UK
    Posts
    820
    i don't think you need any code to create clumsy fingers?
    :P
    Besides which it's much easiler to scamble the keyboard, setting it to imperial Chinese can be fun
    Definition of a Beginner, Someone who doesn't know the rules.

    Definition of an Expert, Someone who knows when to ignore the rules.

  5. #5
    Join Date
    Sep 2002
    Posts
    8
    Thanks for the code. Worked like a charm. I have a silly question however. What is the reason for the "1" in the (stappname, 1)?

  6. #6
    Join Date
    Feb 2002
    Posts
    108
    The 1 indicate how the window is handled, the 1 means open the window in it's original size and position.

    For other options, while viewing your code, press F1 while cursor in on the word Shell and it will show you other options.

  7. #7
    Join Date
    Feb 2002
    Posts
    108
    The 1 indicate how the window is handled, the 1 means open the window in it's original size and position.

    For other options, while viewing your code, press F1 while cursor in on the word Shell and it will show you other options.

  8. #8
    Join Date
    Sep 2002
    Posts
    8

    Solved, with Gratitude

    Thank you all for your help

Posting Permissions

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