MACSCRPT Archives

May 2009

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Stan Cleveland <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Tue, 26 May 2009 11:22:23 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (27 lines)
On 5/23/09 7:47 PM, "John Duncan" wrote:

> I worked out a solution that functions but is very slow so if anyone
> has a better method I'd appreciate seeing it ...
> 
> tell application "Microsoft Excel"
> tell workbook 1
> tell worksheet 1
> set theOptionButton to every option button whose name is
> "options_yesno" and caption is "Yes"
> set the value of item 1 of theOptionButton to checkbox on
> end tell
> end tell
> end tell

Can you limit to checking a range, rather than the entire worksheet?

tell application "Microsoft Excel"
tell range "A1:Z500" of worksheet 1 of workbook 1
set theOptionButton to every option button whose name is "options_yesno" and
caption is "Yes"
set the value of item 1 of theOptionButton to checkbox on
end tell
end tell

Stan C.

ATOM RSS1 RSS2