VBA

Moderators: PavlinII
Number of threads: 1673
Number of posts: 3078

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Immediate Window Text Retrieval: Posted by Pete_201 on 25 Oct 2002 at 2:53 AM
I use 'Debug.Print "Text"' throughout many of my procedures so that I can see which procedures were activated, in which order, using which variables, and so on.

The procedures often call other procedures depending on user inputs and complete different loops. All the procedures have been set up to end in one Procedure which is used to 'Tidy up' and tasks done by the previous procedures.

I would like this final procedure to retreive the text from the immediate window (and copy it into an array for example for reviewing at any time).

Is this possible (without finding all of my 'Debug.Print' lines, and adding something like:
ListBox1.AddItem "text"

or
ImmediateWindowStringArray(BlankPosition) = "Text"   'declared globally
BlankPosition = BlankPosition + 1


TIA,


Tommy Long
Business Services Team
Barclays House, Dorset
Thread Tree
Pete_201 Immediate Window Text Retrieval: on 25 Oct 2002 at 2:53 AM
lionb Re: Immediate Window Text Retrieval: on 25 Oct 2002 at 7:03 AM
infidel Re: Immediate Window Text Retrieval: on 25 Oct 2002 at 9:21 AM



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.