reopen a read only workbook with code

sutclpa

Board Regular
Joined
Dec 21, 2006
Messages
83
Hi All,

I'm hoping somebody might have an answer to a problem i'm having at the moment.

I have a read only workbook, when the user runs a macro in it, part of the process is to re-open the workbook so that A) they have a blank version to start again & B) ensure that they are using the latest version. On some pc's I can get around this by just using the worbooks.open command, however on others it throws up the 'you cannot open two files with the same name' message.

I've check the build/SP versions of the excel installations, and there is nothing obvious there which could be causing it (people with the same details as me get the error message where I don't) and I have also looked at the excel settings, and there are no differences there.

Does anybody have any thoughts, or a suggestion as to a way around this?
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
So, are you saying that you are running a macro in a workbook that reopens itself within that macro?
 
Upvote 0

Forum statistics

Threads
1,224,524
Messages
6,179,310
Members
452,906
Latest member
phanmemchatdakenhupviral

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