Robert,
I am just an old, gray-haired teacher. A very useful lesson for my
students is to learn self-instruction and not rely on others if it is not
necessary. In other words, it would behoove them to research information
themselves. It can be a powerful tool, especially today in the age of the
internet.
I have not responded before in this NG but I do frequent the threads so I
may learn more. What I have noticed with many of your questions is that the
answers are right at *your* fingertips but you rely on others to provide
them for you.
In this case, if you simply searched VBA help for "readonly", you would have
found "workbook.readonly property" which is exactly what Mr. Keramidas
provided you with. You could have had your answer in a matter of seconds
instead of minutes.
In addition, a Google search for
http://www.google.com/search?hl=en&s...&aqi=&aql=&oq=
resulted in the first hit
http://support.microsoft.com/kb/153058
I hope you accept this advice (from a teacher of 42 years) in the manner
intended.
Bill
"Robert Crandal" <(E-Mail Removed)> wrote in message
news:AJjin.1448$(E-Mail Removed)...
> If I open an Excel file which someone is currently using, Excel
> will display a caption in the title bar that says "read only". Excel
> is probably telling me that the file is read only because another
> user currently is using the file.
>
> My question is, does Excel have a function (or can I create
> my own) which returns TRUE if the file is "read only" or
> FALSE otherwise??? I'm mostly interested in a function
> that returns TRUE if Excel displays the "read only" caption due
> to the file's state of being in use.
>
> thank you
>
>
>