Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming,microsoft.public.word.vba.general
|
|||
|
|||
Getting output of a called external executale
Hi all,
I want to call an external executable (.exe in my case) from an Excel-VBA program. I found the Shell function, but with this function it is only possible to get an integer return value back. Is there is any possibility to use pipes to get the output of the external program to VBA? Thanks Thorsten |
#2
Posted to microsoft.public.excel.programming,microsoft.public.word.vba.general
|
|||
|
|||
Getting output of a called external executale
Try:
Shell "Your.EXE C:\MYFILE.TXT" Then Open C:\MYFILE.TXT for Inpuit as #1 and read the contents of the file sequentially: Line Input #1,A$ Use A$ in your VBA Code as required. "Thorsten Walenzyk" wrote: Hi all, I want to call an external executable (.exe in my case) from an Excel-VBA program. I found the Shell function, but with this function it is only possible to get an integer return value back. Is there is any possibility to use pipes to get the output of the external program to VBA? Thanks Thorsten |
#3
Posted to microsoft.public.excel.programming,microsoft.public.word.vba.general
|
|||
|
|||
Getting output of a called external executale
Maybe you could send the output from your .exe program into a text file and then
read that text file in code. Thorsten Walenzyk wrote: Hi all, I want to call an external executable (.exe in my case) from an Excel-VBA program. I found the Shell function, but with this function it is only possible to get an integer return value back. Is there is any possibility to use pipes to get the output of the external program to VBA? Thanks Thorsten -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
what is this called? : < | Excel Worksheet Functions | |||
How can a UDF be called from a formula? | Excel Worksheet Functions | |||
Run Workbook_Open only if called | Excel Programming | |||
Excel called from external app (OLE) stops after processing exactly 10921 rows | Excel Programming | |||
Getting output from an excel output back to cscript.. | Excel Programming |