J
Jon Nall
Hi all.
I spent about an hour tonight trying to write a small applescript that
will take each non-empty cell in an excel 2004 workbook, and change its
font size to it's current font size + 3. To get a list of cells, i
tried this:
tell application "Microsoft Excel"
repeat with c in cells whose value is not ""
set fSize to size of font object of c
set fSize to fSize + 3
set size of font object of c to fSize
end repeat
end tell
without very good results (the following from the Applescript Event Log):
tell application "Microsoft Excel"
count every cell whose value ≠""
0
end tell
I tried numerous other variations without much luck. This is my first
attempt at writing an applescript, so I'm sure I'm just doing something
stupid. I've consulted the Applescript Language Ref and the Excel 2004
Applescript Ref, but couldn't find a working algorithm.
I'd be very appreciative if someone could set me on the right path.
Thanks.
nall.
I spent about an hour tonight trying to write a small applescript that
will take each non-empty cell in an excel 2004 workbook, and change its
font size to it's current font size + 3. To get a list of cells, i
tried this:
tell application "Microsoft Excel"
repeat with c in cells whose value is not ""
set fSize to size of font object of c
set fSize to fSize + 3
set size of font object of c to fSize
end repeat
end tell
without very good results (the following from the Applescript Event Log):
tell application "Microsoft Excel"
count every cell whose value ≠""
0
end tell
I tried numerous other variations without much luck. This is my first
attempt at writing an applescript, so I'm sure I'm just doing something
stupid. I've consulted the Applescript Language Ref and the Excel 2004
Applescript Ref, but couldn't find a working algorithm.
I'd be very appreciative if someone could set me on the right path.
Thanks.
nall.