Macro name being changed in Excel

Posted by Brian Hooper on Super User See other posts from Super User or by Brian Hooper
Published on 2011-01-12T08:39:15Z Indexed on 2011/01/12 8:55 UTC
Read the original article Hit count: 230

Filed under:
|

I am creating VBA macros in my Excel spreadsheet. I notice that from time to time (after saving the spreadsheet and reopening it, usually) one or more of the macro names is being changed from sheet1.macroname to spreadsheetname.xls!macroname. This isn't a valid macro name so I can no longer run it.

I can fix the problem by deleting all the macros, saving the result, pasting the macros back in again and saving again, but one can't expect normal users to do that.

Does anyone know what is causing this, and what I can do to prevent it?

© Super User or respective owner

Related posts about excel

Related posts about excel-2003