Microsoft Excel 4 supports a wide variety of Apple events, sufficient
for almost anything you would want to do. In the event that Excel does
not provide Apple event support for something you need, you can send an
Apple event containing an embedded macro statement which basically
allows you to do ANYTHING that Excel can do via Apple events.
>2. Can I get the spreadsheet to echo user actions to the tutor through
>appleevents? Ideally, I'd like to know every time the user selects a
>cell or performs any action, but I'll settle for what I can get.
This is a bit harder; you'd have to look at Excel's "ON" macro functions
which will run a macro under certain events. The macro would have to
live in Excel. You would then have to write a function in C or Pascal,
and compile it as a code resource, which would actually send the
apple event back to your tutorial program.
For more information on Excel's Apple events support and on writing
code resources for Excel, see the Excel Software Development Kit,
published by Microsoft Press and available at many bookstores. For more
information on Excel's macro language and the ON functions, see the
Excel documentation or one of many fine Excel macro instruction books
available at bookstores.
--
Joel Spolsky
Program Manager
Microsoft Excel
joe...@microsoft.com