Hi Saturnin02!
The subroutines here are ordinary subroutines (as opposed to event handling
routines). The ordinary subroutines go into Modules that you insert into the
workbook.
Probably best here is to use the Personal.xls workbook as it is likely that
you'll want to use the comment changing facility on different workbooks. But
you must first establish your Personal.xls.
Use Tools > Macros > Record New Macro
Select the option of recording it in Personal macro workbook
OK
Make a few entries in the currently open workbook
Stop recording by pressing the stop button on the Record Macro Toolbar.
This has established a Personal workbook that will automatically be opened
as a hidden workbook each time you open Excel.
In the VBE (Visual Basic Editor), just use the Insert menu to add more
modules to the Personal.xls project.
Once you have a macro recorded you can use the View > Toolbars > Customize >
Macro to add a new button to your toolbar. After adding that button, you can
then click it and assign to it your subroutine.
I'd suggest that if you really want to go a lot further with VBA, you should
get a good text such as John Walkenbach's Excel Power Programming with VBA.
--
--
Regards
Norman Harker MVP (Excel)
Sydney, Australia
Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.
(e-mail address removed)
Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.