Problem Saving a Macro

I created a few macros in 2008 and 2009.  Now with 2010 we would like to change them a bit.  I can 't seem to save the macro from the Microsoft VBA editor.  I click on the save button and it doesn't save.  Wen I exit the editor it asks if I want to save.  Clicking yes does not do it.  It doesn't matter if I have parts or drawings opened or closed.

Is there some trick I'm missing.  I even checked for a read only OS flag on the file.

Sounds kind of dumb but I have no idea how to save a macro.

SolidworksApi macros
Answers 2
SF
SF 2010-03-02 Best Answer

Tom,

If someone else has run your macro, then it is loaded into memory on their computer, and you will not be able to save your macro until that user closes SolidWorks.

I have crashed SolidWorks with a macro in memory, and SolidWorks thought the macro was already in use, and would not allow me to save it.

To solve this problem, in Windows, copy the macro to a new directory.  Edit the macro in the new directory. Then back in Windows, copy the new macro file back to the old directory.  Windows will allow you to overwrite the file more easily than SolidWorks will.

TS
TS 2010-03-09
This must have been what was happening.  The next morning everything saved as I would expect.