Thread: Shared Workbook
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
GeoffG[_2_] GeoffG[_2_] is offline
external usenet poster
 
Posts: 3
Default Shared Workbook

I've written VBA code to open a shared Workbook and make changes. I need my
code to determine whether another user has the Workbook open and whether, as
a consequence, my code is opening a read-only copy of the Workbook - in
which case, the code needs to abandon making changes, with advice to the
user to try again later.

Can I programmatically attempt to open a workbook in exclusive mode and then
see if the Workbook opened? Or is there a property I can examine after the
Workbook has opened to determine whether it's in read-only mode?

TIA
Geoff.