• 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
problem using Applescript with Excel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem using Applescript with Excel


  • Subject: problem using Applescript with Excel
  • From: email@hidden
  • Date: Wed, 13 Dec 2000 12:43:34 EST

Hi list folks,
Total newbie question: a portion of my script is meant to copy the data in a
cell in an Excel spreadsheet, then go on & do something else.

set var1 to 1
tell application "Microsoft Excel"
Activate
Select Sheet "Sheet3"
Select Range "R1C13"
set CutCopyMode to false
CopyObject Selection
Activate
set var2 to the clipboard
end tell
--now do something else
if var1 = var2 then
display dialog ("blah")
else
display dialog ("blahblah")
end if

I can't get the script to move on past the "end tell". The application menu
flashes a Script Editor icon at me & when I select Script Editor, then the
script will continue. What am I missing?

Thanks,
Tim Myers


  • Follow-Ups:
    • Re: problem using Applescript with Excel
      • From: nellA hciR <email@hidden>
  • Prev by Date: Re: Does AppleScript have arrays within the language?
  • Next by Date: Re: Does AppleScript have arrays within the language?
  • Previous by thread: RE: document list?
  • Next by thread: Re: problem using Applescript with Excel
  • Index(es):
    • Date
    • Thread