• 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: AS and Excel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AS and Excel


  • Subject: Re: AS and Excel
  • From: Thomas Fischer <email@hidden>
  • Date: Tue, 20 Aug 2013 15:24:27 +0200

Hello Yvan,

I don't have a complete solution, but probably others can help.
I found two problems:
1. Microsoft Excel seems to like to get the name of the workbook as string
2. I found no way to get anything like
every cell in range ("A1:A100") whose value is not ""
to work with Excel.
Up to now I have:

tell application "Microsoft Excel"
set testFile to choose file "PLease select the Excel Workbook!"
set fileName to testFile as string
set newWorkbook to open workbook workbook file name fileName
set theSheet to sheet 1
set theResult to {}
set theCells to (every cell in range ("A1:A100"))
repeat with theCell in theCells
if the value of theCell ≠ "" then copy the the value of theCell to the end of theResult
end repeat
theResult
end tell

Best
Thomas

Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users This email sent to email@hidden
  • Follow-Ups:
    • Re: AS and Excel
      • From: "koenig.yvan" <email@hidden>
References: 
 >AS and Excel (From: "koenig.yvan" <email@hidden>)

  • Prev by Date: AS and Excel
  • Next by Date: Re: AS and Excel
  • Previous by thread: AS and Excel
  • Next by thread: Re: AS and Excel
  • Index(es):
    • Date
    • Thread