Write contents of immediate window to a text file
问题 I'm writing a macro which goes through a document and tries to parse it by Style. Right now, anything in the designated style is copied onto the immediate window. Is there a way to automate the macro further to move the text from the immediate window into a txt file? Otherwise, anyone using the macro would not be able to see the text unless they opened up VBA, correct? 回答1: Here's my suggestion: write to the immediate window AND to a file at the same time. Examples below. Why make the