• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cocoa & Excel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa & Excel


  • Subject: Re: Cocoa & Excel
  • From: Stephan Burlot <email@hidden>
  • Date: Fri, 22 Oct 2004 10:46:38 +0200


NDAppleScriptObject from Nathan Day may help in this case:

http://homepage.mac.com/nathan_day/

Stephan

Le 22 oct. 04, à 02:17, John Terranova a écrit :

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:
email@hidden

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
References: 
 >Cocoa & Excel (From: Linea Tessile Srl <email@hidden>)
 >Re: Cocoa & Excel (From: Larry Fransson <email@hidden>)
 >Re: Cocoa & Excel (From: John Terranova <email@hidden>)

  • Prev by Date: [NEWBIE]: Active loading of browser
  • Next by Date: Re: [NEWBIE]: Active loading of browser
  • Previous by thread: Re: Cocoa & Excel
  • Next by thread: Tall NSTableView Column Headers
  • Index(es):
    • Date
    • Thread