February 8th, 2009, 8:35 pm
QuoteOriginally posted by: DominicConnorThe first task is to trap the value when it happens.That's best done by having a VBA function that simply references the cell as inFunction Record(x as variant)if x...end subNote, I use Variant not double, if this is to trap an "interesting" condition best that you allow for anything to happen."capturing" the screen can be done by BitBlt, but I don't think this is what you want in this case...I suspect you wat to do something like Open "C:\mytest.csv"for each in range Print #1, sheet1.cells(i,j),;",";nextIe dump the values of the sheet to a file.If you just do a screen capture, you're likely to pick up a Bloomberg/Reuters/porn image depending on what the user is looking at...BitBlt is a bit overkill, no? Maybe it would be possible to fake a 'PrintScreen' button press and then dump the clipboard contents to file?