PS:
For applescript, maybe the new version is more powerful but you have to
rewrite your whole code since it's absolutely not compatible with previous
versions of Excel. They could have supported the old dictionary for a time
as they have done before with VBA improvements. On top of that, Excel 2004
is not "recordable", whereas Excel X was... That does not help.
That would be impossible, and ridiculous. Only one dictionary will work at a
time. The new dictionary is _much_ more powerful. You can go back to Excel X
if matters are urgent.
Don't open your X scripts in 2004: the Excel commands will be
incomprehensible «raw codes». To adapt your X scripts for 2004:
1. Quit Excel 2004. Quit Script Editor. Log out (Apple menu) and log in
again.
2. Open Excel X (if necessary, reinstall it from the Office X CD). Open
Script Editor.
3. Open your Excel X scripts in Script Editor.
4. With each script, go to File/Save As. Choose Text from the File
Format pop-up menu. You'll notice the extension changes to .applescript.
Save it anywhere on your Mac.
5. Quit Excel X and Script Editor. Log out and then in again.
6. Open Excel 2004, then launch Script Editor.
7. Open the .applescript Text versions of your scripts in Script Editor.
You will now see‹in uncompiled text‹the original text of the scripts (not
the strange «raw codes» of the compiled script versions).
8. Open the Excel 2004 dictionary in Script Editor (choose File->Open
Dictionary->Microsoft Excel). If you are in any doubt as to which Excel
dictionary is the one for 2004, instead click the Browse button at the
bottom of the window and navigate to Applications->Microsoft Office 2004®
Microsoft Excel.
9. Most of the Excel X commands and classes ‹ which look like
SquishedWordsTogether from the Excel X version ‹ have very close equivalents
in the Excel 2004 dictionary but as 'separate lowercase words'. Change your
old text to the new dictionary commands as needed. Make sure to check
through all the Suites in the dictionary to find the terms you need: the
Microsoft Excel Suite and the Table Suite will be the ones you need most
often.
10. Click the Compile button, and debug (fix the line in which a
highlighted word appears if you get an error ‹ it may be the preceding word
that has the problem) as necessary.
11. When properly compiled so the styled formatting appears when you click
the Compile button, Save As Script or Application.
--
Paul Berkowitz
MVP MacOffice
Entourage FAQ Page: <
http://www.entourage.mvps.org/faq/index.html>
AppleScripts for Entourage: <
http://macscripter.net/scriptbuilders/>
Please "Reply To Newsgroup" to reply to this message. Emails will be
ignored.
PLEASE always state which version of Microsoft Office you are using -
**2004**, X or 2001. It's often impossible to answer your questions
otherwise.