98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Event programming
Event programming
Resolved · Low Priority · Version 2003
Robert has attended:
Excel VBA Intro Intermediate course
Event programming
How do you get code to run when excel shuts down?
Thanks,
Robert
RE: Event programming
Hi Robert, thanks for your query. You add the Auto_Close subroutine to your module:
Sub auto_close()
MsgBox "Goodbye"
End Sub
Try saving the worksheet and then closing it down now. It should say goodbye.
Hope this helps,
Anthony
Training information:
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Excel tip:Counting Non Number Cells (Text)If you try to use the COUNT FUNCTION =COUNT(Cell range)with a range of cells with numbers and or containing text fields you wil find that that the text cells will be excluded from the the count. If you want to include them try the the COUNTA FUNCTION =COUNTA(Cell range). This counts both text and number cell values. |