Re: Cocoa & Excel
Re: Cocoa & Excel
- Subject: Re: Cocoa & Excel
- From: John Terranova <email@hidden>
- Date: Thu, 21 Oct 2004 17:17:06 -0700
Run this in Script Editor (in your Applications:AppleScript folder):
tell application "Microsoft Excel"
Open "Hard Disk:Users:YourShortNameHere:Documents:file.xls"
set val to Value of Cell "B3"
Quit
val
end tell
Now, integrate it into your program. I haven't mixed AppleScript with C/C++/Objective-C/Cocoa before, so I don't know the best way to do it. You can probably use the AppleScript panel of the Inspector in Interface Builder to connect this script to your pushbutton.
Good luck,
john
On Oct 21, 2004, at 4:21 PM, Larry Fransson wrote:
On Oct 21, 2004, at 13:47, Linea Tessile Srl wrote:
Hi people,
I suppose to have an excel file with value 12 in cell B3.
I would like create a cocoa application that with a click on a button is able to insert the value of cell B3 (12) in a text field.
Is it possible?
This sounds like a job for AppleScript, although I know nothing about the capabilities of AppleScript with Excel.
Larry Fransson
Seattle, WA
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden