A
Andrey_Kazak
Version: 2008
Operating System: Mac OS X 10.5 (Leopard)
Processor: intel
Greetings!
I entered a long text in an active cell. Then I selected a part of text in the active cell. Now I want to write a script which changes format of selected text or part of the cell.
Here is the needed code for characters XXX-YYY in an active cell:
tell application "Microsoft Excel"
tell font object of (characters XXX thru YYY of active cell)
set subscript to true
end tell
end tell
But how to extract XXX and YYY from the current selection of text in the cell?
Operating System: Mac OS X 10.5 (Leopard)
Processor: intel
Greetings!
I entered a long text in an active cell. Then I selected a part of text in the active cell. Now I want to write a script which changes format of selected text or part of the cell.
Here is the needed code for characters XXX-YYY in an active cell:
tell application "Microsoft Excel"
tell font object of (characters XXX thru YYY of active cell)
set subscript to true
end tell
end tell
But how to extract XXX and YYY from the current selection of text in the cell?