Alex Rivera | Logout

How can I write to the console from Excel vba code?

Asked 2010-01-26T20:14:02.270
13

Is there any way to print a message to the console from an Excel vba macro? I have a small VB .NET console application that calls an excel macro, and I'd like the error messages from the macro code to print to the console. Debug.print doesn't help as it only prints to the immediate window. Any ideas?

Edit
Report

1 Answer

15

I had to use Debug.Print() as Debug.Write() and Console.WriteLine() did not work

answered 2013-01-14T18:09:23.257

Your Answer