+ Reply to Thread
Results 1 to 7 of 7

Shared Workbook Changes not saving

Hybrid View

  1. #1
    Registered User
    Join Date
    07-01-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    89

    Shared Workbook Changes not saving

    Hi All

    I have a shaared workbook which contains macros.

    All the macros work fine, but, for some reason, when i use the code:

    
    ActiveWorkbook.Save
    The changes that other people make aren't showing.

    Normally, in a shared work book, if i make a change, then save using the traditional ctrl+s or... just going to the menu and clicking save, my changes will show on the other persons workbook if they then save too.

    But with the above code, that doesn't happen.

    Is there a special code that saves the workbook and allows the changes to be seen?

    Many thanks!
    Last edited by techteam; 08-19-2011 at 08:45 AM.

  2. #2
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Re: Shared Workbook Changes not saving

    Hmmmm....
    try:
    ThisWorkbook.AcceptAllChanges
    ThisWorkbook.Refresh
    If your question has been satisfactorily addressed, please consider marking it solved. Click the Thread Tools dropdown and select Mark thread as solved.
    Also, you might want to add to the user's reputation by clicking the star icon in the lower left corner of the post with the answer- it's why we do what we do...

    Thomas Lafferty
    Analyst/Programmer

  3. #3
    Registered User
    Join Date
    07-01-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    89

    Re: Shared Workbook Changes not saving

    Hiya

    Thanks - i treid that code, but when i ran the macro i got the following error:

    Compile Error:

    Method of data member not found

    "ThisWorkbook.Refresh"

  4. #4
    Registered User
    Join Date
    07-01-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    89

    Re: Shared Workbook Changes not saving

    Please help

  5. #5
    Forum Contributor
    Join Date
    06-17-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    157

    Re: Shared Workbook Changes not saving

    You can try replacing "ThisWorkbook" with "ActiveWorkbook"

    That might help.

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Shared Workbook Changes not saving

    Thisworkbook will refer to the workbook containing the code, ActiveWorkbook means the code will run on any workbook that is currently active.

    There is no Refresh in Excel VBA, RefreshAll refers to queries. Maybe it should have been
    ThisWorkBook.Save
    However, sharing a workbook is not a good idea
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  7. #7
    Registered User
    Join Date
    07-01-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    89

    Re: Shared Workbook Changes not saving

    Many thanks :D

+ 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