Workaround to edit Macros that are locked on network drive

Question:  I have macros on a network drive and need to edit them.  Unfortunately, someone has them locked (open).  How do I unlock them without going to that computer to manually unload the macros?

Answer: There is a live workaround.  While you cannot edit the files while locked, you can change their folder name! This allows for a sneaky little trick that doesn’t require going to the offending computer.

Simply rename the folder on the network drive where the macros are located. Then copy that folder (files and all) to the same drive. Rename the new folder to be the same name as before the original folder was renamed.

The macros in the old folder with the changed name will still be locked out, but the macros in the new folder with the original name will be free to edit!

In a day or so, the files in the old folder will be unlocked again.  Simply delete the old folder at that time.

Addendum: It should be noted that this method will not always work.  However, it is worth a try before taking any other action.

Author: fcsuper

As a drafter, mechanical designer and CAD engineer, I've been in the mechanical design field since 1991. For the first 8 years of my career, I was an AutoCAD professional. I utilized AutoLISP and many other AutoCAD customization features to streamline drafting activities for 6+ drafters and designers. I authored several custom functions, one of which was published in the March 1997 issue of Cadalyst Magazine. Since 1998, I've been used SolidWorks non-stop. I've worked to utilize the SolidWorks' user environment to simplify drafting and design activities for 20+ engineers. I've created this website to provide current information about SolidWorks from a variety of contributors. More recently, I am now employed by Dassault Systemes as SOLIDWORKS Sr. Product Definition Manager to improve drawing, annotation and MBD related areas.

One thought on “Workaround to edit Macros that are locked on network drive”

  1. Hello,

    I’m not sure if this is the ethical way to do it.

    This breaks down the whole set of rules and security norms and the purpose of locking the macro. It could cause havoc and nightmare for the administrator if everybody starts doing this.

    Wouldn’t it be better if you ‘save as’ the macro on the local computer. Modify it. And with the knowledge of Administrator, update it at the proper time.

    Are we talking the same language? I’m not a regular SWk user nor a network expert nor an Administrator. But this is what I feel.

    What’s your take on this?

    – sanjay Kulkarni

Leave a Reply

Your email address will not be published. Required fields are marked *