Applescript Question: adding a new button to a toolbar...

A

Andrey_Kazak

Version: 2008
Operating System: Mac OS X 10.5 (Leopard)
Processor: intel

Hallo!

I use version 12.1.1. I write an applescript in order to add a new button to my "Custom" toolbar:

tell application "Microsoft Excel"
set newItem to make new command bar button at command bar "Tools"
end tell

(this is a part of example from page 30 of "Excel 2004 AppleScript Reference")

When I run this script I get the following error from Script Editor:
"Microsoft Excel got an error: Can't make class command bar button."...

What is the problem?
How can I correct it?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top