Manipulate contents of Immediate window

G

Guest

Hi all.

I'm wondering, is there some way to manipulate ALL the contents of the
Immediate window?

I've got some code that processes a sizeable table and prints text into the
Immediate window that indicates how the execution of the code is going.

Would there be some funky way to grab ALL the text that's printed in the
Immediate window?
If i go in there after the execution is completed, the window only holds the
last 300 lines of script or so.

Thanks,
Alex
 
A

Allen Browne

At the start of your routine:
Open "C:\MyFile.txt" For Output As #1

At the end of your routine:
Close #1

In between, replace each:
Debug.Print "xxxx"
with:
Print #1, "xxxx"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top