+ Reply to Thread
Results 1 to 2 of 2

Shared file locks for saving when a specific macro is run

  1. #1
    Registered User
    Join Date
    11-30-2012
    Location
    alberta, canada
    MS-Off Ver
    Excel 2010
    Posts
    39

    Shared file locks for saving when a specific macro is run

    Good Morning,

    I have created a database in excel that is to be in a public shared folder. When it is not shared you can run all of the macro's just fine and everything is all fine and dandy. As soon as it gets shared, and you use the "Update Drop Downs" macro, it locks the document for saving. all of the macro's still work which is good but you just can't save after the fact. I figure that it is because I use some mySQL in the excel code and it opens the excel document partially (I am just throwing stones into the pond at this point) and since excels sees it as "Opening" it locks the file for editing. Does anyone know a work around for this? I was thinking maybe closing the background file that is open some how but I am not sure what the vba would be for that.

    I tried having the program close then reopen before I let the user input data for saving but sharing cut that off and errored so I am out of ideas.

    I have attached the file for you to look at:

    InventoryDatabase.xlsm

    If you have any questions at all let me know,
    Sleepyshy
    Last edited by Sleepyshy; 02-01-2013 at 12:54 PM.

  2. #2
    Registered User
    Join Date
    11-30-2012
    Location
    alberta, canada
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Shared file locks for saving when a specific macro is run

    UPDATE!

    Hello again,

    I have found the solution to my own problem! I found that all I had to do was insert this teeny weeny bit of code in the following places:

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    If anyone doesn't get it let me know!
    Have a great day,
    Sleepyshy

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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