Excel Workbook open only in 1 user

dhen21dx

Board Regular
Joined
May 10, 2013
Messages
166
Hi,

Just have a question here, we have a shared Excel file and open by anybody at same time, however i have some risk that other may change the file while open to me. Is it possible that excel file open for only 1 user, and for some user, pop up the window that is open on user(application user name). Thanks for the answer in Advance.
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
I have stated this many times to many people. Don't Use Excel's Sharing feature. It is potentially dangerous. The potential of losing data is very strong

Save the file as a standard workbook.

IMHO
 
Upvote 0
Yeah, the file is Standard WorkBook, but i want the file open for only 1 person at a time to avoid saving of new workbook. or maybe read only but restriction on saving even when user close the file and need to reopen if it is need to update for checking that it is not open to anybody while open in 1 user.
 
Upvote 0
You could close the workbook immediately if they open it as read only

Put this SUB in the "ThisWorkbook" module

Code:
Private Sub Workbook_Open()
   If ThisWorkbook.ReadOnly = True Then ThisWorkbook.Close savechanges:=False
End sub
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
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