Getting Username when workbook is opened Readonly

  • Is it possible to find out who has a workbook open when the workbook is not shared? i.e. User1 opens the workbook, User2 then tries to open the same workbook & gets the "do you want to be notified" message indicating someone else is using the workbook. I would then like to be able to run a macro to return the username of whoever has the workbook open so I could send an email but cannot find a way of accessing the "notification list".

  • Re: Getting Username when workbook is opened Readonly


    try this


  • Re: Getting Username when workbook is opened Readonly


    As an alternative.


  • Re: Getting Username when workbook is opened Readonly


    You don't say which version worked, but second sight showed up a little bit of blindness on my part. The code in post #2 can retrieve the name of the file 'owner' directly rather than querying the Excel lock file, so the function WhoHasFileOpen can be shorted a little...


Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!