+ Reply to Thread
Results 1 to 4 of 4

Data overrid in a shared workbook???? help :-)

  1. #1
    Forum Contributor
    Join Date
    08-29-2011
    Location
    Wisbech England
    MS-Off Ver
    Excel 2010
    Posts
    308

    Data overrid in a shared workbook???? help :-)

    Hi All
    Hopefully I can find the answer to may problem here...
    I have developed this program that allow users to create new reports and log the information into the main data base, few days ago I was showing someone how to use it and we have created 5 new reports 50,51,52,53,54 and 55 all reports had been recorded successfully into the data base apart from report No. 54 and 55 , what actually happened was some else was using this program at the same time we were using it and his reports override our reports .
    I should mention that we're using workbook in shared mode and I thought that there's no way that data in shared workbook can't be override when used by 2 different users at the same time.
    Please take a look at the below code from my userform
    Thank for you help in advance.






    Please Login or Register  to view this content.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Data overrid in a shared workbook???? help :-)

    Hello ciapul12,

    Here a few links about Shared Workbooks. This should help you better understand the limitations of using a shared workbook.

    About Shared Workbooks

    Share a Workbook

    Avoid Shared Workbooks in Excel
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor
    Join Date
    08-29-2011
    Location
    Wisbech England
    MS-Off Ver
    Excel 2010
    Posts
    308

    Re: Data overrid in a shared workbook???? help :-)

    Quote Originally Posted by Leith Ross View Post
    Hello ciapul12,

    Here a few links about Shared Workbooks. This should help you better understand the limitations of using a shared workbook.

    About Shared Workbooks

    Share a Workbook

    Avoid Shared Workbooks in Excel
    Hi Leith
    Thanks for the links it was very informative I must say :-)
    You see in my case the code looks for the next available/empty row and then assigns the id number to the report so If the last report was 50 the next will be 51 and so on, so I still don't understand how the override of the data could happen???
    Is there anything I could add to my code that would work the same as when you close/save and re-open workbook? some sort of refresh?
    I think what may have happened was 1 user opened the workbook the last report was 50 then other user have opened the same workbook because the user 1 didn't closed and saved the workbook user 2 still had last report as 50 instead 52 and this is why override occurred?

    Thank you.

  4. #4
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Data overrid in a shared workbook???? help :-)

    Hi ciapul12,

    Your problem is similar to, but not the same as the following link:
    http://www.excelforum.com/excel-prog...in-msgbox.html

    In post #8 and #9 in that thread, the poster found a solution to his problem, by using an auxiliary Excel file.

    You may be able to do something similar when you want to write to the shared workbook:
    a. Attempt to open a pre-existing dummy single User Excel file.
    b. If the file is successfully opened, you can now write to the original Excel file.
    c. If the file is NOT successfully opened, it means the original Excel file is being updated by someone else
    and appropriate action must be taken.
    d. Close the dummy single User Excel file when when write has completed.

    Lewis

+ 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: 0
    Last Post: 04-10-2014, 03:31 AM
  2. Data Connections in Shared Workbook
    By NickPDC in forum Excel General
    Replies: 3
    Last Post: 07-11-2012, 06:06 AM
  3. Using external data on a shared workbook
    By chiefwiggum in forum Excel General
    Replies: 0
    Last Post: 10-06-2011, 05:20 AM
  4. How refresh data in shared workbook?
    By Ronald S. Cook in forum Excel General
    Replies: 0
    Last Post: 05-08-2006, 10:35 AM
  5. Data Validation in Shared Workbook
    By susieqhersh in forum Excel General
    Replies: 1
    Last Post: 09-01-2005, 04:05 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