Easier custom dialogue boxes
In Excel 3 and 4, custom dialogue boxes are defined by a dialogue definition
table on an Excel macro sheet. However, editing a dialogue box or linking
macros to the controls on a dialogue box through the dialogue definition
table is not very straightforward. In Excel 5, graphical representations
of custom dialogue boxes are saved in an Excel workbook as dialogue sheets,
and making changes to a dialogue box or attaching macros to the controls
is much easier.
Menu editor
Excel 5 has a Menu Editor which makes customisation of the menu bar far
easier than in previous versions. It is straightforward to add or remove
menus and menu items, and a customised menu bar can now be saved with a
file.
Visual Basic for Applications programming language
Excel 5 has Visual Basic for Applications (VBA) as its macro language. This
is a powerful programming language which can be used to control Excel objects,
such as cells, buttons and charts. It is great advance on the original Excel
macro language and can be used to develop very sophisticated custom applications.
VBA procedures are entered on module sheets. These are far more convenient
to use than the previous Excel macro sheets where code had to entered into
spreadsheet cells.
New workbook structure
All Excel 5 files are workbooks which can contain several worksheets, chart
sheets, module sheets and dialogue sheets. The names of the sheets in a
workbook can be displayed on tabs at the bottom of the screen and users
can move to a different sheet in a workbook by clicking on its sheet tab.
Sheets can also be renamed so that their function is more self­p;explanatory.
In previous versions of Excel, sheets had to be created separately and then
grouped and saved as a workbook.
On completing the tutorial, An introduction to creating CAL courseware
with Microsoft Excel 5, the learner will have created a CAL courseware
module designed to help students learn about the normal distribution. The
self-teaching tutorial takes the learner step-by-step through the development
of the module. Learners will then be able to develop their own applications
using and adapting the ideas and features learnt with the aid of the tutorial.
The tutorial is divided into the following five chapters:
1. Building the Spreadsheet - shows how to set up the main worksheet
for the example and embed a chart in it.
2. Improving the Interface - shows how to improve the appearance
of your worksheet by using graphic objects.
3. Using Controls and Macros - introduces ways of customising
an Excel application with on-sheet controls and simple macros.
4. Adding Dialogue Boxes - gives examples of more advanced macros
and shows how to use different types of dialogue box.
5. Distributing Courseware - gives details of ways that you can improve
the useability of an Excel application and includes several useful macros.
Joanna Tidball
clues@abdn.ac.uk
Macros attached to options buttons switch between two charts