Excel Macro recorder keeps including Activeworkbook.sheet (xxxxx). How do I prevent that?
Posted on 2013-05-26
I have an excel 2010 user who's not adept at modifying the macro VBA code. This person uses the macro recorder to create fairly simple macros in the 5 to 15 step range.
The issue is that, when she records the macro (to the personal.xlsb), it is including the name of the workbook and sheet name that she was using when she created / recorded the macro.
So, when she goes to apply this macro to another spreadsheet workbook (entirely different file), it fails because the workbook / sheet names are different.
This does not happen with another user. So, the question is, short of editing the VBA generated by the macro recorder, how do I prevent the macro recorder from including the active workbook / sheet info?
THanks very much.