+ Reply to Thread
Results 1 to 17 of 17

Simultaneous Update

  1. #1
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Simultaneous Update

    Hey guys,

    I am sure many of you would have faced such questions as i have and this led me to think and think...so i started this thread.

    I have seen several OPs asking for questions requiring simultaneous update between files .for e.g. I want this master file to be updated as soon as there is an entry n the team member's file, if i change the dept name in this row, the data should be removed from the old dept tab and copied to the new dept tab, etc. What do you think is the best way to do this?

    I thought of the following options -

    1. On a worksheet event, clear the destination sheet completely and reload with the required data.
    2. On update, check if the row already exists. If not, copy it in the next available row. But how do i check? Keep running a "find" query? If not found, then update?

    Please advise. I really want to learn something out of this.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  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: Simultaneous Update

    I just steer clear of these. Keeping multiple workbooks synchronised has just got problems written all over it. If anyone at work asked me how to do this with Excel I'd make them sit in the corner for an hour and think about how silly they were being.

    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
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Simultaneous Update

    I've been trying to ween my coworker off of multiple workbook linking and merging. The way I see it, if someone wants to collate data like described, then a data base (a real one) should be used and not multiple workbooks located in multiple folders. Plus, the whole notion of updating one workbook from the updates of other workbooks makes my head spin and the only time I like my head spinning is when there are a few beers in my belly.
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Simultaneous Update

    I usually find such requests when the team updates their individual workbooks and the team leader wants the summary. But they want it live !!!

  5. #5
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Simultaneous Update

    Wouldn't cell linking be the best way for a summary in a team leader's workbook?

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Simultaneous Update

    Mostly they dont want all the columns. Just a few. This complicates stuff.

    I can give examples of open threads with such requests.

  7. #7
    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: Simultaneous Update

    Tell them to use a database.
    Good luck.

  8. #8
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Simultaneous Update

    Quote Originally Posted by OnErrorGoto0 View Post
    Tell them to use a database.
    You mean Access?

  9. #9
    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: Simultaneous Update

    Not necessarily Access but this is definitely a job for a database. It's what they are designed for.

  10. #10
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Simultaneous Update

    They can also share the file and the team lead/manager can access the same file. Have one tab for each employee, right?

  11. #11
    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: Simultaneous Update

    Never ever ever ever ever ever ever ever ever ever use Shared Workbooks. Unless your life is boring and needs livening up.

  12. #12
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Simultaneous Update

    Other than Access, what other databases in MS Office can they use?

  13. #13
    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: Simultaneous Update

    None, since there is only one database program in MS Office.

  14. #14
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Simultaneous Update

    Thats what i thought. If they dont know Access, they will have to choose other options....not provided by Office.

  15. #15
    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: Simultaneous Update

    Yes - there are plenty of free ones like SQL Server Express.

  16. #16
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Simultaneous Update

    In many cases this will do in Excel:

    If all users can only open a copy of a central workbook : Worbooks.add "\\central.xls"

    You only have to provide for a small macro to save the modifications made by each user in the copyfile into the common workbook "\\central.xls"
    The opening of the common file, the adaptation with the modifications and the saving of the common file will only last milliseconds if performed by a macro.
    The chance of multiuser interference will be minimal.

    Especially if you allow users only to use userforms to change anything you can have a very standardized structure of the data in Excel.
    Everyone who has read-only access to the common file will also only be provided with a copy of it.

    There are a lot of organizations that have no trillion employees working with the same data simultaneously.
    Last edited by snb; 02-27-2012 at 08:15 AM.



  17. #17
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Simultaneous Update

    If you can't use a database to query employee information and you must use workbooks, make sure all workbooks are saved in the same shared folder and then write a procedure to extract from each workbook the pertinent data and place it into the viewable workbook for your manager. I would personally dread this type of job but if you format all of the employee workbooks in a consistent manner then the extraction process will only be half as horrible to code.

+ 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