+ Reply to Thread
Results 1 to 4 of 4

Unable to UNSHARE a Workbook

  1. #1
    Forum Contributor
    Join Date
    10-25-2010
    Location
    Phoenix, Arizona, USA
    MS-Off Ver
    O365
    Posts
    201

    Question Unable to UNSHARE a Workbook

    I have a test workbook that I was trying some new code.

    The problem seems to occur when I try to save a SHARED workbook for EXCLUSIVE USE.

    The following code is used in the Workbook_BeforeClose event:
    Please Login or Register  to view this content.
    As a 'test' workbook, there is no other code present.

    This is being performed on a stand alone computer, no other users (testing at home for project at work).

    Using Excel 2007, Windows Vista Ultimate

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Unable to UNSHARE a Workbook

    ExclusiveAccess only works if multiuserediting is true. You have the if statement for this before you use exclusiveacesss but then you say you are perfoming this on a stand alone computer with no other users.. Are you skipping the code to that line to test it or is multiuserediting really true when you are getting the error?

  3. #3
    Forum Contributor
    Join Date
    10-25-2010
    Location
    Phoenix, Arizona, USA
    MS-Off Ver
    O365
    Posts
    201

    Re: Unable to UNSHARE a Workbook

    I was trying this at home which was a standalone, no other computers.

    I have now tried the same code at work, which is LAN connected, still receive the same error at the same line.

    Also, I've noticed that I can't manually stop sharing. On the Share Workbook dialog, the "Allow changes by more than one user at the same time" is checked, but greyed out.

    Excel won't release it from shared status.

    Anymore help would be appreciated...

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Unable to UNSHARE a Workbook

    This won't help for this situation, but .....

    There are two kinds of shared workbooks, those that are corrupted, and those that soon will be.

    Avoid shared workbooks, it's much safer to use Access if possible.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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