Some more hints for working with VBA:
Alt-F8 will open a dialog with a list of macros (i.e. routines defined as Sub()), and you can choose Run, or Edit or Step Into to view the code.
Alt-F8 will not display functions, but if you start to type =function_name the VBA functions will be included in the list of available functions, as well as the built in ones. You can then select the one you want, and click on the function wizard (fx, next to the name box), to see the required input.
To view a function code you have to go to the VBA Editor (Alt-F11, or Developer tab, if you must), then search for it. If using the search function (Alt-F), and you want to search all modules, make sure the search Project option is selected.
To step through a function:
- Go to the function code in the VBA Editor, and set a break point near the start (or from wherever you want to step)
- Go back to the worksheet and select a cell calling the function, then press F2-Enter.
- You can then step through the code with F8, etc, as for a subroutine.
Doug Jenkins
Interactive Design Services