Detect AutoSave in Excel 2016?

TopCatt

New Member
Joined
Sep 26, 2016
Messages
11
I have a couple of spreadsheets that run some validation code when the 'BeforeSave' event is triggered. With the new autosave functionality (saving the document to Sharepoint on a very frequent basis), this causes two problems; (a) the code errors out, because the save still happens with the spreadsheet not active (.find methods don't work); and (b) I don't really want the code to run very frequently, as it takes a small but noticeable amount of time.

The problem can be solved just by manually switching off the autosave for these sheets, but this is not ideal (as new copies are saved of each every week and the autosave has to be turned off again, and in any case it is useful functionality). I could probably rewrite the code to solve (a), activating the sheet if nothing else, but this wouldn't be ideal, and would still leave the problem of (b) to deal with.

Is there anyway to detect if the BeforeSave event is triggering from an AutoSave or from a manual save? Or some other way of having an event trigger only on a manual save, and not on an autosave?

Thanks,

TC
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Hi All,

I have the same issue.
Anybody knows now how to deal with this autosave ? Especially I do not have 2016 but my colleagues have.
Thanks
 
Upvote 0

Forum statistics

Threads
1,223,891
Messages
6,175,229
Members
452,621
Latest member
Laura_PinksBTHFT

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top