Copy from immediate window to spreadsheet

Nick's picture

getting data from immediate window

... u need to do this in the VBA

add a sheet called "Log"
everywhere you find debug.print "xxx", add a line:

sheets("Log").cells(rows.count,1).end(xlup).offset(1) = "XXX"

getting data from immediate window

Hello Nick,

after a through search, I found your suggestion was working.

Can you please give a full sample small script.
Much appreciated mate.

Thanks,
Amool