Then how do I check with a macro if it was opened as read only or as
read/write?
where wb refers to the workbook you want to know about
Regards,
Peter T
"Alberto Ast" <Alber...@discussions.microsoft.com> wrote in message
news:309F56ED-42AC-4C94...@microsoft.com...
if wb.ReadOnly then
wb.Close False
else
wb.Close True
end if
"Peter T" wrote:
> .
>
Dim wb as workbook
Set wb = ActiveWorkbook
If this post helps click Yes
---------------
Jacob Skaria