If not familiar with VBA and macros, see David McRitchie's site for more on
"getting started".
http://www.mvps.org/dmcritchie/excel/getstarted.htm
In the meantime..........
First...create a backup copy of your original workbook.
To create a General Module, hit ALT + F11 to open the Visual Basic Editor.
Hit CRTL + r to open Project Explorer.
Find your workbook/project and select it.
Right-click and Insert>Module. Paste the code in there. Save the
workbook and hit ALT + Q to return to your workbook.
Run the macro by going to Tool>Macro>Macros.
To create a button you can use a button from the Forms Toolbar which will place
a button on your sheet.
Right-click and "assign macro".
If you want a button on an existing Toolbar................
Tools>Customize>Commands>Macros.
Drag the Smiley Face up to an existing Toolbar and drop it there.
Right-click and "Assign macro".
Gord
Gord
This is exactly what I need.
Could you explain how to create the button and write the macro
Regards
Gord Dibben MS Excel MVP