+ Reply to Thread
Results 1 to 10 of 10

WriteReservedBy displaying my name even though I am read only

  1. #1
    Forum Contributor
    Join Date
    12-19-2012
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    135

    WriteReservedBy displaying my name even though I am read only

    Hi,

    Can anyone please advise me if it is possible to check who has WriteReservedBy on an excel workbook using vba in a different workbook. I currently have the code below which is only returning my name no matter who has the file open read/write.

    Please Login or Register  to view this content.
    The file i am checking is on a shared network drive and when opening manually you do get the user name for current user with WriteReservedBy, so I assume this is not anytype of network issue?

    My objective is to open workbook "testfile" using vba within workbook "RigLog" if workbook "testfile" is open read only then return a message indicating which user has WriteReservedBy.

    Regards
    Steve
    Last edited by Steve@Rugby; 12-19-2013 at 11:24 AM. Reason: typo!

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: WriteReservedBy displaying my name even though I am read only

    Is WriteReserved True?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    12-19-2012
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    135

    Re: WriteReservedBy displaying my name even though I am read only

    Hi shg,

    Yes, made sure of this by asking another colleague to open the file whilst I tested it.

    Regards
    Steve

  4. #4
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: WriteReservedBy displaying my name even though I am read only

    WriteReservedBy property will return name of the user that saved the workbook with password to modify. It will not return name of the user that has workbook open for editing.
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  5. #5
    Forum Contributor
    Join Date
    12-19-2012
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    135

    Re: WriteReservedBy displaying my name even though I am read only

    Hi Izandol,

    Thanks for your reply, yes I just found some information on internet also confirming your answer. I will leave this thread open in the hope someone may have an idea that will work for me.

    Regards
    Steve

  6. #6
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: WriteReservedBy displaying my name even though I am read only

    You may try reading the lock file owner:
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    12-19-2012
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    135

    Re: WriteReservedBy displaying my name even though I am read only

    Hi Izandol,

    Thanks, how do i call these functions? Sorry not too familiar with them

    Regards
    Steve

  8. #8
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: WriteReservedBy displaying my name even though I am read only

    You may use:
    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    12-19-2012
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    135

    Re: WriteReservedBy displaying my name even though I am read only

    Hi Izandol,

    Excellent that works as needed, thank you.

    Regards
    Steve

  10. #10
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: WriteReservedBy displaying my name even though I am read only

    You are welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 02-05-2013, 04:52 AM
  2. Open in read-only, make changes, and back to read-only??
    By questionguy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-12-2012, 01:00 PM
  3. Read ajacent cells, but skip a cell when displaying output
    By miam in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-25-2011, 07:54 PM
  4. Replies: 3
    Last Post: 01-27-2010, 02:28 PM
  5. WriteReservedBy Location
    By JakeyC in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-06-2006, 06:50 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1