Macro to copy an excel file every 5 minutes automatically

feni1388

Board Regular
Joined
Feb 19, 2018
Messages
133
Office Version
  1. 2021
Platform
  1. Windows
Hello..

I have an excel file that is created every day using vba. This excel file is being used by several users at the same time (shared workbook).
But only 2 users are allowed to make changes at the same time.
I'm not sure what the cause is, but lately this shared workbook can suddenly unresponsive and showing a message that the workbook is locked.
To prevent any loss in the information saved, I'm wondering whether I can use VBA to automatically save this excel file under different name every 5 minutes or so.
Once it's saved under that different name, the next 5 minutes macro can save it under the same backup file name.

I'm not good at creating VBA, so if anyone can help.....

Thank you in advance
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
you shouldnt be sharing an excel workbook at the same time as others. (you've seen the results)
You CAN use Access database with multi users all editing different records.
 
Upvote 0
you shouldnt be sharing an excel workbook at the same time as others. (you've seen the results)
You CAN use Access database with multi users all editing different records.
You're right but the thing is that our office isn't equipped with Access and we have our own database already.
This excel thing is only for day to day record that are connected to another excel file.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,286
Members
452,631
Latest member
a_potato

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