I need to set some type of function that will save & close a spreadsheet if it is left unattended for a certain amount of time.

Is there an option for this or do i need to create a macro?

Any help would be great. Thanks.