I would suggest trooping off the David McRitchie's "getting started with
macros" site and read a while then practice.
Make use of the Macro Recorder under Tools<Macro>Record New Macro.
The code produced will do the trick in most cases. It is not the most elegant
code and you will learn how to refine it by watching these news groups,
especially the excel.programming group.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.