File options set as recommend read only

JackDanIce

Well-known Member
Joined
Feb 3, 2010
Messages
9,922
Office Version
  1. 365
Platform
  1. Windows
Hi,

At work we have a file that when opened provides the message it should be opened as read-only (unless you wish to make changes). However, because I'm the only one that makes any changes, I want to change this so for me, this message is never displayed.

I can't put any code into the workbook (Sub Workbook_Open) code because this is executed after the read-only message is processed. At the same time, I do not want to disable this message (by turning off this prompt in Save As, Tools, General Options) for anyone else who opens this file.

Is it possible to do this so that difference people have different opening criteria?

Thanks,
Jack
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
I think you would have to use code to open it, specifying the IgnoreReadOnlyRecommended argument.
 
Upvote 0
Thinking out loud... you could load it from another workbook. Put some code in that workbook to recognise your logonid: if it recognises you, the main workbook opens with the correct password. Everyone else opens the main workbook directly.

How does that sound?
 
Upvote 0
Morning Rory,

Do you mean open the book from another module and specify the IgnoreReadOnly command from there?

I could create this in my personal macro book... Any thoughts/comments?

Best,
Jack
 
Upvote 0
Hi Ruddles,

You and Rory have the same idea; I may just put up with it for now and implement something in my personal macro workbook later - more of a convenience than an absolute requirement!

Thanks guys,
J
 
Upvote 0
This works here:-
Code:
Option Explicit
Option Compare Text
 
Private Sub Workbook_Open()

  If Environ("username") = "ruddles" Then
    Workbooks.Open "c:\temp\mainbook.xls", , False, , , "password", True
    ThisWorkbook.Close False
  End If

End Sub
Put that in your 'bootstrap' workbook and when you open it, it will open your main workbook and then close itself.

Any good?
 
Upvote 0

Forum statistics

Threads
1,214,922
Messages
6,122,281
Members
449,075
Latest member
staticfluids

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