F
fwbmorison
Version: 2008
Operating System: Mac OS X 10.5 (Leopard)
Processor: Intel
I'm very new to Applescript, so I am sure I am overlooking some simple rule of syntax, but I would appreciate a pointer.
This compiles:
tell application "Microsoft Excel"
activate
(* Work with active sheet *)
set myRange to current region of active cell
set myTotal to get offset myRange row offset 9 column offset 1
select myTotal
end tell
As does this:
tell application "Microsoft Excel"
activate
(* Work with active sheet *)
set myRange to current region of active cell
set myTotal to get offset myRange row offset count of rows of myRange
select myTotal
end tell
but when I try to add a column offset in the second example, the applescript compiler tells me about a syntax error at the word column - expected end of line, etc. but found class name
e.g this won't compile
tell application "Microsoft Excel"
activate
(* Work with active sheet *)
set myRange to current region of active cell
set myTotal to get offset myRange row offset count of rows of myRange column offset 1
select myTotal
end tell
Thanks
Operating System: Mac OS X 10.5 (Leopard)
Processor: Intel
I'm very new to Applescript, so I am sure I am overlooking some simple rule of syntax, but I would appreciate a pointer.
This compiles:
tell application "Microsoft Excel"
activate
(* Work with active sheet *)
set myRange to current region of active cell
set myTotal to get offset myRange row offset 9 column offset 1
select myTotal
end tell
As does this:
tell application "Microsoft Excel"
activate
(* Work with active sheet *)
set myRange to current region of active cell
set myTotal to get offset myRange row offset count of rows of myRange
select myTotal
end tell
but when I try to add a column offset in the second example, the applescript compiler tells me about a syntax error at the word column - expected end of line, etc. but found class name
e.g this won't compile
tell application "Microsoft Excel"
activate
(* Work with active sheet *)
set myRange to current region of active cell
set myTotal to get offset myRange row offset count of rows of myRange column offset 1
select myTotal
end tell
Thanks