Macro to copy an excel file every 5 minutes automatically

feni1388

Board Regular
Joined
Feb 19, 2018
Messages
61
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 can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
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,215,069
Messages
6,122,959
Members
449,096
Latest member
Anshu121

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