can't open an xcl workbook on a mac with rb-appscript

A

Arti Singh

I get an errror when I try to open a workbook

require "appscript"
include Appscript

excel=app('Microsoft Excel')
excel.activate
workbook=excel.open_workbook:)workbook_filename=>"Macintosh
HD::Files::Data.xlsx")

Does any one here have any ideas as to what I can do? I am out of ideas

/opt/local/lib/ruby1.9/site_ruby/1.9.1/appscript.rb:467:in `block in
_send_command': Unknown keyword parameter: :workbook_filename
(ArgumentError)
from /opt/local/lib/ruby1.9/site_ruby/1.9.1/appscript.rb:464:in `each'
from /opt/local/lib/ruby1.9/site_ruby/1.9.1/appscript.rb:464:in
`_send_command'
from /opt/local/lib/ruby1.9/site_ruby/1.9.1/appscript.rb:643:in
`method_missing'
from test.rb:6:in `<main>'
 

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

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,898
Latest member
BlairH7607

Latest Threads

Top