+ Reply to Thread
Results 1 to 2 of 2

Multiple Users of VBA Userform, all data saved to one Sheet (Shared Workbook)

  1. #1
    Valued Forum Contributor Parth007's Avatar
    Join Date
    12-01-2014
    Location
    Banglore
    MS-Off Ver
    2010
    Posts
    879

    Smile Multiple Users of VBA Userform, all data saved to one Sheet (Shared Workbook)

    Dear Experts.. need your advice & assistance

    I've a workbook that is shared. This workbook has a userform to enter data into a single sheet. What it does is, when the user clicks on the userform button "UPDATE", it fills the first blank row available on the sheet.

    Questions:

    If there are multiple persons working at the same time on the file, if one fills the first blank row available (say row 2) and doesn't save right away, when another one is filling the first available row, it will be overwriten because this user also has the first available blank row as row 2, right?


    Please suggest I am really stuck in this.. & I have to deliver it asap
    I have to use shared workbook



    Below is the code I am using.. Form Updated Button Code

    Please Login or Register  to view this content.
    Regards
    Parth

    I appreciate your feedback. Hit * if u Like.
    Rules - http://www.excelforum.com/forum-rule...rum-rules.html

  2. #2
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: Multiple Users of VBA Userform, all data saved to one Sheet (Shared Workbook)

    Hi,
    What if you calculate first empty row just after your userform is opened and after this row is found - write some text in column A, like "Waiting for new Record...", then save workbook immediately.
    After user fills all values on your form (this perhaps take some time) - write them in already binded row.
    In case some other user will open file to add his record - last row for him will be row below the row with "Waiting for new Record...".
    Just make sure you delete row if no records was added, to make sure that your databese will not contain many rows with "Waiting for new Record...".

+ 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: 4
    Last Post: 11-05-2015, 03:24 PM
  2. Multiple Users in a Shared Workbook
    By athyeh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-06-2014, 05:38 PM
  3. Multiple Users using Shared Workbook and Running Macros
    By Tayque_J_Holmes in forum Excel General
    Replies: 4
    Last Post: 09-06-2012, 12:26 AM
  4. shared workbook, saving work my multiple users
    By obeo2k2 in forum Excel General
    Replies: 2
    Last Post: 08-03-2011, 06:29 AM
  5. multiple users to access and edit on the protected shared workbook
    By hyee in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-22-2011, 03:50 AM
  6. Multiple Users of VBA Userform, all data saved to one database
    By oliver_l in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-22-2010, 01:41 AM
  7. Multiple users / Shared workbook without interfernce?
    By mglassco in forum Excel General
    Replies: 0
    Last Post: 05-04-2006, 07:25 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