![]() |
Getting output from an excel output back to cscript..
I have a vb basic script that automates an excel spreadsheet, it opens the
spreadsheet and then runs an macro. This macro takes a long time to run and I want to be able to output status information to the cscript that lauched the command. Is there anyway to do this? is there any kind of stdout stream that my macro can write to that I can read in my script? I'm looking for a clean and "correct" solution. I don't want to write to a file in the macro and then read the file in my script. Basically when my user runs the script the screen should read something like this: c:\cscript thescript.vbs The script has been started! Opening excel... Starting the excel macro... <-wscript.echo in script 10 rows processed <- This would come from the macro, somehow 100 rows processed <- from the macro Macro complete. <-wscript.echo in script Script complete. c:\ Is this possible? -J |
All times are GMT +1. The time now is 04:38 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com