Code to automatically save workbook automatically???

siasarma

New Member
Joined
Sep 20, 2008
Messages
46
I am wondering if anybody has a code that I can paste into my worksheet that will automatically save the workbook every once in awhile??? Or maybe every time there is a change to it or something??? Any ideas??? Thanks!!!
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
use event code. rightclick excel icon on the left of "file" in menubar and click view code.
on the left side arrow choose workbook on the risht side arrow choose sheetchange.
write your code.something like this
workbooks(...).save
the first you save manually.
note that the file will be saved everytime you change any cell in any sheet. you can restrict his to change in cells in a range in particulr sheet.
 
Upvote 0
You can also just just get in the habit of hitting {Control + S} frequently and making backups at every important step in your work or development.
 
Upvote 0

Forum statistics

Threads
1,221,525
Messages
6,160,329
Members
451,637
Latest member
hvp2262

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