Prevent user from opening same workbook twice

dcoledc

Active Member
Joined
May 6, 2010
Messages
403
I have created a fairly involved workbook. Well, fairly involved for me. If I have it open, but minimized, and then try to reopen, it causes lots of problems. I am wondering if there is some way to prevent the second instances from every opening.
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
I don't think that is what I am looking for. If the workbook is already open and the user clicks on the icon to open again, it causes trouble.

Any more thoughts? Or do I misunderstand the use of the code?
 
Upvote 0
Hi Dan,

I can't seem to find something to keep the same workbook from opening other than the user clicking No when Excel warns them the workbook is already open.

Maybe somebody else will step in with an idea...
 
Upvote 0
I have created a fairly involved workbook. Well, fairly involved for me. If I have it open, but minimized, and then try to reopen, it causes lots of problems.

This is a curious case. What kind of problems? Why aren't your user's able to just say "no" when the message pops up? Why don't they even know they already have the workbook open? I'd probably shoot myself if I had to work with users like this ... best to keep them away from your workbooks.
 
Upvote 0
Hi Dan,

I can't seem to find something to keep the same workbook from opening other than the user clicking No when Excel warns them the workbook is already open.

Maybe somebody else will step in with an idea...

The only thing I can think of is to use a windows hook or a background timer to automatically dismiss the excel warning.
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,734
Members
452,939
Latest member
WCrawford

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