+ Reply to Thread
Results 1 to 14 of 14

Multiple Users to Use Excel

  1. #1
    Forum Contributor
    Join Date
    06-06-2008
    Location
    Manchester
    MS-Off Ver
    MS Office 2003
    Posts
    161

    Multiple Users to Use Excel

    I have a workbook, that has a lot of VBA code, & Userforms. I need to be able to share the workbook with a number of users. From looking at Shared Workbook in both the Excel Help and Google I'm a little concerned that it may not be the best way of doing things.

    Can anyone suggest the best way I need to do this?

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Re: Multiple Users to Use Excel

    Hi,

    I would say your findings are correct by reading this

    http://excel.tips.net/Pages/T002998_..._Workbook.html
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Forum Contributor
    Join Date
    06-06-2008
    Location
    Manchester
    MS-Off Ver
    MS Office 2003
    Posts
    161

    Re: Multiple Users to Use Excel

    I had a thought about looking into who would be using the Workbook. It turns out that there will be 2 types of user, Full Access User & Read Only User.

    My thought was to have a table which contains the UserID (from the Computer) Username, Access Rights & TimeDate Stamp.

    When a User opens the Workbook it runs a query to find out who it is (I have a Function from Access to get the ComputerName) this would then tell what type of user they are. If they are ReadOnly is it possible to set the Workbook to ReadOnly? If the User was FullAccess I was looking at the idea that it would put a TimeDate Stamp in that field. Then if another FullAccess opens the Workbook it will let them know they cant update untill the other user has finished.

    For this my idea was to use the Keypress commands, say I click on open an Edit button, It then puts TimeDate Stamp in the Cell, Once I click Save it then takes the TimeDate Stamp out, thus allowing anyone else to use the Workbook, and the same process as before.

  4. #4
    Forum Contributor
    Join Date
    06-06-2008
    Location
    Manchester
    MS-Off Ver
    MS Office 2003
    Posts
    161

    Re: Multiple Users to Use Excel

    Ok, I have created a table which hold the UserID, Username, AccessRight & TimeStamp.

    I have created this code below which logs the LogIn of the Workbook. to be able to amend this and add into a table (tblUsers) the TimeStamp which is column 4. But I only want to do this if the AccessRights (Column3) is Full Access, and if its ReadOnly how can I set it the workbook to ReadOnly?

    Please Login or Register  to view this content.
    Also I need to move this thread into the programming section, how can this be done?
    Last edited by JezLisle; 04-06-2009 at 04:49 AM.

  5. #5
    Forum Contributor
    Join Date
    06-06-2008
    Location
    Manchester
    MS-Off Ver
    MS Office 2003
    Posts
    161

    Re: Multiple Users to Use Excel

    Thanks for moving the thread, Does anyone have any ideas about #4 in this thread

  6. #6
    Forum Contributor
    Join Date
    06-06-2008
    Location
    Manchester
    MS-Off Ver
    MS Office 2003
    Posts
    161

    Re: Multiple Users to Use Excel

    OldChippy, Leith Ross, Have you had a chance to look over this thread?

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Multiple Users to Use Excel

    ... how can I set it the workbook to ReadOnly?
    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  8. #8
    Forum Contributor
    Join Date
    06-06-2008
    Location
    Manchester
    MS-Off Ver
    MS Office 2003
    Posts
    161

    Re: Multiple Users to Use Excel

    Quote Originally Posted by shg View Post
    Please Login or Register  to view this content.
    Thanks for that, now is it possible for this to be done after looking in the tblUsers to find out if the UserID is ReadOnly or not?

  9. #9
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Multiple Users to Use Excel

    Pardon ???

  10. #10
    Forum Contributor
    Join Date
    06-06-2008
    Location
    Manchester
    MS-Off Ver
    MS Office 2003
    Posts
    161

    Re: Multiple Users to Use Excel

    I have posted the question on another forum to see if anyone else knows if there is a solution to my current thread

    http://vbaexpress.com/forum/showthread.php?t=26126

  11. #11
    Forum Contributor
    Join Date
    06-06-2008
    Location
    Manchester
    MS-Off Ver
    MS Office 2003
    Posts
    161

    Re: Multiple Users to Use Excel

    From posting this thread into another forum I have received a reply but am struggling with part of it.

    http://vbaexpress.com/forum/showthre...t=26126&page=2

    I am trying to have the code below tell me if someone else who is in my list of Users with FullAccess under the AccessRights Column has Opened the Workbook and has a InputDate next to their name.

    So I'm trying to write if the User = FullAccess, then check the InputDate column to see if there is any dates in the column where any Users with FullAccess are already in the workbook.

    How could I do this?

    Please Login or Register  to view this content.

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

    Re: Multiple Users to Use Excel

    This example hides/unhides specific sheets according to the user. It could easily be adapted to change the files Read Only property.

    It contains a very hidden sheet with a table of users with their passwords & sheets they can access, the third column could contain Read Only. The user is promoted for the username 7 password. Only 3 attempts are allowed.

    To view the sheet open the VB Editor & make the sheet visible. Use

    Username: Roy
    Password: y
    Last edited by royUK; 04-14-2009 at 04:39 AM.
    Hope that helps.

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

    Free DataBaseForm example

  13. #13
    Forum Contributor
    Join Date
    06-06-2008
    Location
    Manchester
    MS-Off Ver
    MS Office 2003
    Posts
    161

    Re: Multiple Users to Use Excel

    Thanks for this Roy, I have amended mine now as that looked a far better idea.

    My problem is that if the first person opens the workbook, it all works fine, but if I have someone else open workbook while person1 is still in the workbook, then excel automatically brings up the box to say ReadOnly and that do I want to Open,Notify or Cancel. How can I get rid of that box and use the code below to set whether the workbook is read only.

    Please Login or Register  to view this content.

  14. #14
    Forum Contributor
    Join Date
    06-06-2008
    Location
    Manchester
    MS-Off Ver
    MS Office 2003
    Posts
    161

    Re: Multiple Users to Use Excel

    How is it possible to get rid of the pop up box telling you another user is already in the workbook?

+ 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