Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
J S J S is offline
external usenet poster
 
Posts: 11
Default 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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combo box output excel 2007 Dan Excel Discussion (Misc queries) 2 May 14th 10 03:49 PM
ADD (A3+A1) IN MS EXCEL & I WANT OUTPUT IN CELL A3 HOW ? seshuramakrishna Excel Discussion (Misc queries) 2 January 24th 10 08:48 PM
Using Excel in Formatted Output John[_31_] Excel Worksheet Functions 2 November 8th 09 09:54 PM
excel output to outlook? josh ashcraft Excel Programming 1 September 8th 03 07:04 PM


All times are GMT +1. The time now is 09:39 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"