The VBA shell function runs a shell command immediately and then returns. It doesn't wait for the command to finish and it doesn't provide for a way to get the command's standard out stream or even exit code. That may be why you are getting "no result".
If you are expecting information back from your Perl script, there are some alternatives. You could try the recommendataions here, but as you can see its pretty long-winded and complicated code. This link supposedly provides a function that waits till the command is done, but even it doesn't get you the output to STDOUT or the exit code. You would have to make additional arrangements to write to and read from a named output file if you need output from your command.
I've never tried this script, so use at your own risk. Personally, I haven't had much luck getting Excel to wait and return results from external commands reliably.
Best, beth
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.