I was told the recorder is not the best way to learn
No body ever claimed it was the best way.
And many will say (I agree) the macro recorder is not a good way to write code. But for
LEARNING code, it's a GREAT...no...FANTASTIC tool..
Anytime I find myself asking "How Do I...?"
The macro recorder is one of my first options.
Almost Anything you can do by hand in the excel GUI, the macro recorder can show you how to write it in code. It shows you the correct syntax for functions.
The reason we say it's not a good tool to WRITE code with, is mainly because it does alot of SELECTING sheets and ranges. While there is nothign WRONG with that, however it is a very ineficient and ugly way to write code. And your resulting code will be very slow. Selecting sheets and ranges makes code very slow.
But again, for the purpose of LEARNING how to write code, there's nothing wrong with the macro recorder. You'll be hard pressed to find an easier/faster way to learn how to do a specific task in code. Once you know how to do a specific task by hand in the Excel GUI, in about a minute or so you can learn how it's done in code.
edited for a final thought on the subject....
Probably a good piece of advice for using the macro recorder....
Don't use it to write out a whole long process you need to use for preparing a spreadsheet....Use it sparingly to learn how to write 1 specific task. For example..."How can I rename a sheet in Code?"..Or.."How Can I Turn The Sheet's Protection On And Off?"
so just quickly start the recorder, rename a sheet and/or Turn protection on/off. Wala, you see the code to rename a sheet and/or turn Protection on/off.