I'm using Excel 2007
I know that Excel/VBA does not have a specific AfterPrint event, but need to execute some commands after a user has printed the sheet or print-previewed it.
I have a worksheet that has some cells formatted so as to hide the formulae and results returned from the user - and the results are only revealed in a print out or Preview, by using the BeforePrint event to change the format.
However, once the printout has been produced, or ClosePrintPreview button has been clicked, I want VBA to re-format the target cells to re-hide the formulae and results.
How can this be achieved?
Thanks in advance.
I know that Excel/VBA does not have a specific AfterPrint event, but need to execute some commands after a user has printed the sheet or print-previewed it.
I have a worksheet that has some cells formatted so as to hide the formulae and results returned from the user - and the results are only revealed in a print out or Preview, by using the BeforePrint event to change the format.
However, once the printout has been produced, or ClosePrintPreview button has been clicked, I want VBA to re-format the target cells to re-hide the formulae and results.
How can this be achieved?
Thanks in advance.