Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run code on closing a form

Status
Not open for further replies.

daseffects

Technical User
Joined
Aug 21, 2003
Messages
38
Location
GB
I want to set Excel calculation back to automatic when the my form closes as I do when it launches.


I use Userform_activate() when the form launchs but have tried terminate and exit w/ no luck.



Application.Calculation = xlCalculationAutomatic
 
daseffects,

I've not tested this, but UserForm_Terminate() may be what you're looking for.

Hope this helps.

Leigh Moore
LJM Analysis Ltd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top