+ Reply to Thread
Results 1 to 5 of 5

Sharing Workbook with Macros

  1. #1
    Registered User
    Join Date
    12-15-2008
    Location
    hanover
    Posts
    34

    Sharing Workbook with Macros

    Is it possible to share a workbook with macros and have the macros work properly. I have one spreadsheet that needs to be shared by many users. We want to all be in the same document at the same time saving changes. The real catch is that the workbook has macros. I used the 'Share Workbook' function under tools. At the end of the setup, it told me that the macros would not work properly. The odd thing is that everytime I try to click on one of the macros I get an error, but yet the macro still performs the function. So essentially the macro works, it is just a pain because you have to click 'end' everytime on the error screen. Any suggestions?

    Alanda
    Last edited by VBA Noob; 03-02-2009 at 02:12 PM.

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile Re: Sharing Workbook with Macros

    Good afternoon alanda

    Macros should work perfectly well in a shared workbook : the only catch is you can't edit macros while the workbook is shared. If you want to amend the macros you must unshare the workbook.

    However, there are a number of features that won't work in a shared workbook (for example worksheet protection) and it could be one of these that causes the error.

    Search Excel help for "Features that are unavailable in shared workbooks", or post back listing what your macro does for someone to point it out (if you want to post your code you'll have to unshare the workbook to access it).

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Registered User
    Join Date
    12-15-2008
    Location
    hanover
    Posts
    34

    Red face Re: Sharing Workbook with Macros

    I kind of suspected that my worksheet protection was causing the problem. There is no way that I can unprotect my sheet though, or the other users will destroy it in no time (not on purpose). Is there any code that I can put in to make it work without getting the run-time error, and still allow it to be a shared workbook?
    Alanda

  4. #4
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile Re: Sharing Workbook with Macros

    Hi alanda

    With a shared workbook, any existing protection remains in place, but you cannot set protection or unprotect a range.

    I know it's restrictive and limiting but those are the limits of shared workbooks...

    HTH

    DominicB

  5. #5
    Registered User
    Join Date
    12-15-2008
    Location
    hanover
    Posts
    34

    Re: Sharing Workbook with Macros

    Thanks for your assistance. At least now I know what my limitations are.

    Alanda

+ 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