To use the macro, press Alt-F11 to open the VBA Editor. On the left, you should see your workbook's name and below that 'ThisWorkbook'. Double-click on 'ThisWorkbook', then paste the macro code into the main panel. You might want to change the macro's name (Demo) to something more meaningful to you. Press Alt-F11 to close the VBA Editor, then activate your worksheet. Finally, press Alt-F8, choose the macro and click OK.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|