Changed save event

Modified save event to export code before save instead of after so that
you are not prompted to save changes when closing excel if you just
saved.