Ignore open by other user message box

Finndus

New Member
Joined
Apr 6, 2011
Messages
9
Does anybody know how to get over the file open by other user message box that excel throws up?

I'm trying to make my program fail safe for my users......
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Is the file saved as a "shared workbook" so that multiple users can update it simultaneously?
How does removing that message make it "fail safe" for other users?
It seems to me that removing that message could cause more problems than it solves, especially if it is not shared, as the subsequent users would not be able to save their changes back to the original file.
 
Upvote 0
Ok,

I was probably being slightly vague, sorry.

The idea is not to overwrite a file if it is open but instead close it and then the program can continue. Basically if a user forgets to close the file and calls the macro again (called from another program), excel will stop, i just need it to continue - the file which the user would want would be the file that the user ran the program on, hence the old file is not needed.

Cheers
 
Upvote 0
I am sorry to say, but I find your last post a bit confusing.
 
Upvote 0
If the user were to forget to close the previous file, make changes in another program and then re-run the macro (called from the other program) - a read-only box appears - I want to override this, close the open, old file so excel can continue with opening the new file (same file name as old file) and continue with the macro, ultimately re-saving over the old file.

I hope that makes things clearer.:)
 
Upvote 0
Thanks Smitty,

I'm getting a file locked by user message, open as read only..... - the macro wont make the open file active to close..

Any ideas?
 
Upvote 0
Then you're SOL.

Try to figure out a way to not make the process reliant on that workbook. Like work on an intermediate workbook the other user won't use, but you can link him to it.
 
Upvote 0

Forum statistics

Threads
1,224,597
Messages
6,179,812
Members
452,945
Latest member
Bib195

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