+ Reply to Thread
Results 1 to 2 of 2

To open a .exe file using Macro

  1. #1
    Registered User
    Join Date
    01-10-2014
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    1

    Unhappy To open a .exe file using Macro

    Hi,

    Scenario:
    I have made a C program file to create some text files as per requirements depending on inputs from Excel sheet to the same folder as where the exe file is.
    (I know we can use VB macros as well for the same but, needed C program in this case. )

    I need help on how to open the .exe file using Macros. I tried using Shell command.
    The .exe file opens but, i cannot see the output files in the same folder.
    I open the .exe file manually and run the rest of the code like input from excel and it works! the output files are visible.

    can anyone help me here? Is there any other way I can open the same file??? Or is it that when i am using shell command the output files are going elsewhere?

    Thanks in Advance.

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: To open a .exe file using Macro

    If you download a sample Excel file and a sample .exe file that outputs "Hello World" we may be able to help you. If the "Hello World' sends output to a file, make the file someplace where we have access to such as 'c:\users\owner\Downloads' preferably using an environment variable.

    Excel vba syntax:
    Please Login or Register  to view this content.
    Lewis

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Macro - Master file to import data from another open file with variable file name
    By jdodz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-10-2012, 10:56 PM
  2. Create macro to open selectable list then open file
    By mattmurdock in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-02-2012, 07:10 PM
  3. macro prompts immediately to open a file once the Excel file with the macro is opened
    By jhmayor03 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-03-2012, 10:00 AM
  4. Excel Macro to open explorer, open csv file
    By Trubble in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-13-2009, 04:54 AM
  5. [SOLVED] Open a file do a macro ( made) and open next succesive file
    By SVTman74 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-21-2006, 05:20 PM

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1