+ Reply to Thread
Results 1 to 3 of 3

Userform Network access issue

  1. #1
    Registered User
    Join Date
    11-27-2019
    Location
    Canada
    MS-Off Ver
    Office 365
    Posts
    1

    Post Userform Network access issue

    Hi All.

    This issue I can't resolve. Please bear with me while I describe the issue:

    The Situation
    I have a large project built in Excel - it is a complex statistical model with a userform GUI. It consists of several VBA modules. The overall size of the .xlsm file is about 2Mb. The VBA files are password-protected in VBEditor.

    Of the VBA files, the largest BAS is 36Kb and the largest FRX is 141Kb. The userform contains 506 controls. Everything compiles fine.

    The workbook is arranged such that only one sheet is visible, containing a launch button for the tool's GUI, which automatically initializes when the work book opens via the Workbook_Open procedure in the ThisWorkbook module.

    During the loading of the userform, it accesses a network drive which pulls in information for the form.

    The Problem

    When two people try to use the form simultaneously, the form will crash for one user saying the shared drive is in use and cannot be accessed. Is there a way to stop this? We are rolling out to a large group and this will cause lots of issues.

    THank you!

  2. #2
    Valued Forum Contributor
    Join Date
    06-02-2012
    Location
    London, England
    MS-Off Ver
    365
    Posts
    397

    Re: Userform Network access issue

    Hi and welcome

    Quote Originally Posted by jbob View Post
    During the loading of the userform, it accesses a network drive which pulls in information for the form.
    Where is it pulling this information from on the network? Another Excel file? Does it open that data source as read only?
    Could we see the code that does that?

    I work with a very similar system and to get around these issues (when opening the source as read only doesn't work) I store the data I need for combobox lists etc. in a database and import them during the workbook open event.
    That way when I need to make changes to the list I just have to change the detail in the database then all user will receive it when they next open the Excel file.

    Beth.

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

    Re: Userform Network access issue

    Quote Originally Posted by jbob View Post
    When two people try to use the form simultaneously, the form will crash for one user saying the shared drive is in use and cannot be accessed. Is there a way to stop this?
    What you probably need is a quasi-locking mechanism that allows users to wait until the file is available on the network drive. Two such scenarios are (pseudo-code):
    1. Wait until the file is available:
    Please Login or Register  to view this content.
    2. Create a temporary 'Canary' file that indicates the file is busy:
    Please Login or Register  to view this content.

    2A. Create two temporary 'Canary' files that indicate the file is busy (there may be a race condition that causes Scenario 2 above to fail):
    Please Login or Register  to view this content.
    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. Allow access to WorkBook ONLY if on network
    By CRIMEDOG in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-02-2016, 04:00 PM
  2. Allow access to WorkBook ONLY if on network
    By CRIMEDOG in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-02-2016, 10:23 AM
  3. VBA to access file across network
    By wotsup in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-07-2012, 10:03 AM
  4. Excel cannot access files on a network.
    By badgadjit in forum Excel General
    Replies: 2
    Last Post: 10-07-2007, 10:15 PM
  5. network user access
    By khalid79m in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-04-2007, 12:58 PM
  6. [SOLVED] Excel Tends to access network when I issue commands
    By ch in forum Excel General
    Replies: 0
    Last Post: 12-27-2005, 04:40 AM
  7. [SOLVED] Network issue
    By Pat in forum Excel General
    Replies: 3
    Last Post: 01-07-2005, 08:06 PM

Tags for this Thread

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