+ Reply to Thread
Results 1 to 4 of 4

excel vba macros with multiple users and sharepoint

Hybrid View

  1. #1
    Registered User
    Join Date
    12-03-2021
    Location
    Nebraska, USA
    MS-Off Ver
    16
    Posts
    3

    excel vba macros with multiple users and sharepoint

    Here's my situation i have 5 different print departments (Color, Black/White, Shipping, Dock, Mail Print) all entering in different information, based upon the computers name is what tells excel which macro to open. The File is in share-point so there are multiple users who can access this file. I run into problems when someone changes the workbook while someone else has a macro open and they dont reopen the file. Is there anyway to avoid that? A way to make the workbook read only when a macro is open and read/write when there are no macros open? I've been looking and reading that some people have made an Access database and just used excel for the macros but wanted to get someones opinion on how to avoid this error in the future how to fix it before it happens again.

    VBA is a work in progress for me so i know i have things to learn when it comes to the code
    Attached Files Attached Files
    Last edited by iwest05; 12-06-2021 at 12:06 PM.

  2. #2
    Forum Contributor
    Join Date
    10-02-2012
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    293

    Re: excel vba macros with multiple users

    Quote Originally Posted by iwest05 View Post
    Here's my situation i have 5 different print departments (Color, Black/White, Shipping, Dock, Mail Print) all entering in different information, based upon the computers name is what tells excel which macro to open. The File is in share-point so there are multiple users who can access this file. I run into problems when someone changes the workbook while someone else has a macro open and they dont reopen the file. Is there anyway to avoid that? A way to make the workbook read only when a macro is open and read/write when there are no macros open? I've been looking and reading that some people have made an Access database and just used excel for the macros but wanted to get someones opinion on how to avoid this error in the future how to fix it before it happens again.

    VBA is a work in progress for me so i know i have things to learn when it comes to the code
    I'm confused? A workbook will always open as read only if somebody is already accessing the file, and it will alert you as such when you open the workbook, so it should not be possible for anyone else to change anything while the workbook is open, regardless if a macro is running or not. The only option someone has when editing a read only workbook is to create another copy.

  3. #3
    Registered User
    Join Date
    12-03-2021
    Location
    Nebraska, USA
    MS-Off Ver
    16
    Posts
    3

    Re: excel vba macros with multiple users

    If that is the case this workbook doesn't open in read only. When im in it i can see someone else changing data as im doing the same thing
    we use share point, teams and office 360

    I think i figured out my issue, if im editing in visual basic and save it the error happened when the other person didnt reopen the file when excel noticed there were changes.
    Last edited by iwest05; 12-06-2021 at 12:06 PM.

  4. #4
    Forum Contributor
    Join Date
    10-02-2012
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    293

    Re: excel vba macros with multiple users

    Quote Originally Posted by iwest05 View Post
    If that is the case this workbook doesn't open in read only. When im in it i can see someone else changing data as im doing the same thing
    we use share point, teams and office 360
    Ah my apologies, I miss the part about SharePoint. That would be where your problem lies. If possible I'd edit the title to include SharePoint, as it's a niche part of VBA so would need some experienced eyes to take a look.

+ 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: 2
    Last Post: 10-13-2021, 01:03 AM
  2. Random users not able to save a shared Excel file with VBA Macros.
    By Yoshiwara95 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-10-2020, 11:50 AM
  3. Cant hide worksheets after macros to force users to enable macros
    By Mboemoyo85 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-13-2015, 02:52 AM
  4. Inputting data from multiple instances from multiple users into a main Excel Workbook
    By smooth_beaker in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-04-2013, 12:18 AM
  5. 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
  6. Macros not working when a workbook is opened by multiple users
    By CJD in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-05-2009, 04:00 PM
  7. Share with multiple users allowing macros
    By 19Rowy85 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-09-2008, 06:14 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