Consulting

Results 1 to 3 of 3

Thread: Sleeper: How to call or execute a program from excel Vba editors?

  1. #1
    VBAX Newbie
    Joined
    Mar 2005
    Posts
    1
    Location

    Sleeper: How to call or execute a program from excel Vba editors?

    Hello Alls,

    I am new here. I was wondering how do I use the excel VB editor to call the execute program (what ever programs) to run. Example I have the plot program that I can call from excel VB. I had follow the following code but did not get the program run. Any ideal?

    VBA Express Forum > VBA Code & Other Help > Other Applications Help > Solved: GetOpenFilename in MS Project


    Kian

  2. #2
    Site Admin
    Urban Myth
    VBAX Guru
    Joined
    May 2004
    Location
    Oregon, United States
    Posts
    4,940
    Location
    Hi Kian, welcome to VBAX!!

    To get a good idea about the Visual Basic Editor (VBE) in Excel - the Visual Basic for Applications - interface, check out our Training and Certification: Lesson 1. It covers an Introduction to the Visual Basic Editor. The first lesson is free.

    Let us know if you have any other questions after you read that.

  3. #3
    VBAX Tutor
    Joined
    May 2004
    Location
    Germany, Dresden
    Posts
    217
    Location
    Hi Kian,

    it pretty much depends on what you want to do with the program. If you just want to run it, a simple

    Shell "c:\winnt\explorer.exe"
    should be enough.

    The code in the posting you mentioned is just getting the name of a file selected in a dialog, it is not supposed to run it. But once you have the full name, you could use Shell to run it.

    Steiner

Posting Permissions

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