none
Excel Shell RRS feed

  • Question

  • We have written a C# program.  All users can directly run the exe with no issue.  We have an excel file with a button to launch the exe with the Shell as follows

    strBomAppPath = "Z:\Jet Reports\BomExplodeAndSub.exe"
        
    varProc = Shell(strBomAppPath, 1)

    Some users can use the excel  button to launch the exe with no issue.  However others are failing to connect to the database.  If they are able to run the exe directly why won't it work for them through excel vba?

    Wednesday, February 7, 2018 3:37 PM

All replies

  • Hello Morath,

    What do you want to do with the excel via the C# program? 

    If you use the Shell in Word VBA, will you get the error.

    If you use the Shell in a VB.net applicatio, will you get the error?

    Best Regards,

    Terry


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, February 8, 2018 7:46 AM