
Originally Posted by
Cjax
If I browse the forums just to learn techniques should I start a new thread everytime I have a question about an author's answer. I didn't think trying to understand a thread was the same as having my own situation i need help with.
Of course, you are correct. I apologize.
And one of the things i *really* need to do better is put comments into the code itself to explain what's going on.
Ok, let's start with your original question (which is what sounded like a topic change to me...)..."how to add a macro".
==========
How to use add a macro:
1. Open up your workbook
2. Get into VB Editor (Press Alt+F11)
3. Insert a new module (Insert > Module)
4. Copy and Paste in your code (given above)
5. Get out of VBA (Press Alt+Q)
6. Save your sheet
The macro is installed and ready to use. Press Alt-F8 and select it from the macro list.
==========
If that's all you needed, great. If not, we can talk about the specifics of the macro itself. Here's the second macro with more "notes" added:
Bookmarks