Hi, I hope someone has an answer to this:
I've been pondering for a while if it is possible to have VBA write each line of code that it executes while going through in a process to a log, in order to monitor for blocks of code which are slowing it down. So for each line of code VBA processes, I'd like it printed to a text file along with the time that it was executed.
It would be quite a practically useful thing to do now, though, so I'm asking on this forum instead of simply pondering. Essentially I would need a module that would read each line to a string variable or array, done whenever this line was executed, and written immediately to a new line of a txt file along with the time of execution.
Thanks in advance.
I've been pondering for a while if it is possible to have VBA write each line of code that it executes while going through in a process to a log, in order to monitor for blocks of code which are slowing it down. So for each line of code VBA processes, I'd like it printed to a text file along with the time that it was executed.
It would be quite a practically useful thing to do now, though, so I'm asking on this forum instead of simply pondering. Essentially I would need a module that would read each line to a string variable or array, done whenever this line was executed, and written immediately to a new line of a txt file along with the time of execution.
Thanks in advance.