+ Reply to Thread
Results 1 to 9 of 9

macros and vba in a shared workbook.

  1. #1
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    macros and vba in a shared workbook.

    Dear All,

    I was asked to create a complaints and compliments database in excel with the ability to produce some reporting.

    So from the database tab I created various pivot tables. Which, as per the code below refresh upon activation

    Please Login or Register  to view this content.
    Private Sub Workbook_Open()
    Worksheets("Home Page").Activate
    End Sub

    The workbook also contains various other macros.

    The problem is that the workbook must be Shared so as that people can access it and update it at the same time.

    To my annoyance, and even more so to that of my boss. I have discovered that these macros do not work on a shared workbook.

    Does anyone know how i can overcome this.?

    Thanks alot

    Please Login or Register  to view this content.

    Please Login or Register  to view this content.

    Please Login or Register  to view this content.
    Blake 7

    If your question has been answered, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

    If any member's response has helped to solve your problem, please consider using the scales icon on the top right of their post to show your appreciation.

    http://failblog.org/

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: macros and vba in a shared workbook.

    Nothing I can see there that shouldn't work in a shared workbook. Not that I use them though as they are pure evil

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: macros and vba in a shared workbook.

    Just found this on contextures. Should have googled this first!! oh well. can always rely on sumproduct for reporting!!

    Too Many Missing Features
    After you share a workbook, many of Excel's features can't be used. There's a list of unavailable features for Excel 2003 on the Microsoft site, and in Excel's help. For example, you can't add any of the following features, and in some cases you can't even change the existing items:

    •Conditional Formatting
    •Data Validation
    •Lists
    •Protection
    •Pivot Tables

  4. #4
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: macros and vba in a shared workbook.

    Sorry I thought it was the lower 3 of the macros that you were referring to.

    Dom

  5. #5
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: macros and vba in a shared workbook.

    Your options are basically:
    1. Don't use shared workbooks
    2. Add code to unshare the workbook, refresh the pivot table, then reshare it. No idea how/if this would work if other users are in it.
    Last edited by OnErrorGoto0; 02-29-2012 at 09:43 AM.
    Good luck.

  6. #6
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: macros and vba in a shared workbook.

    Quote Originally Posted by OnErrorGoto0 View Post
    2. Add code to unshare the workbook, refresh the pivot table, then reshare it. No idea how/if this would work if other users are in it.
    I think they would need to close and re-open the workbook to regain shared access.

    Dom

  7. #7
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: macros and vba in a shared workbook.

    hi guys - guess the reporting (Generally counts of this that the other by dept by month will have to be formula based) and some of the funtionality required will be lost. back to the drawing board.........

  8. #8
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: macros and vba in a shared workbook.

    You could put the reporting (or data entry) part in a separate workbook?

  9. #9
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: macros and vba in a shared workbook.

    theres an avenue to explore!!!

+ 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