Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Applescript Excel: How to move one cell to the right?

801 views
Skip to first unread message

Fant...@officeformac.com

unread,
Aug 8, 2009, 6:29:39 PM8/8/09
to
Version: 2008
Operating System: Mac OS X 10.5 (Leopard)
Processor: Intel

Hi,

I am desperately trying to move the active cell cursor
one cell to the right in Excel. There MUST be an easy solution
via Applescript but I cannot figure it out. Please help me
with the correct code to move the active cell position one cell
to the right!

Thank you

Fantomas

Mu...@officeformac.com

unread,
Aug 8, 2009, 7:26:33 PM8/8/09
to
In Excel, go to Preferences, Edit and you can change there. You dont need Applescript!

Fant...@officeformac.com

unread,
Aug 9, 2009, 3:38:03 AM8/9/09
to
> In Excel, go to Preferences, Edit and you can change there. You dont need Applescript!

Sorry, but this is no solution to my question.
I want to do the following thing with Applescript:

Lets say the active cell is "A1". Now I want Applescript to increase the
column to "B1", so that the "B1" is the active cell.
Please, could some of you help me to get the code for Applescript?

Thank you in advance

Fantomas

TecNik

unread,
Aug 12, 2009, 3:29:01 AM8/12/09
to
Here are a couple of methods using AS:-


tell application "Microsoft Excel"
activate
select range "A1"
select (cell 6 of row 10 of active sheet)
end tell

aol...@su.edu

unread,
Apr 6, 2018, 1:01:45 PM4/6/18
to
With VBA

Sub MoveSelectionUp()

Selection.Offset(-1, 0).Select

End Sub

Sub MoveSelectionDown()

Selection.Offset(1, 0).Select

End Sub


Sub MoveSelectionLeft()

Selection.Offset(0, -1).Select

End Sub

Sub MoveSelectionRight()

Selection.Offset(0, 1).Select

End Sub
0 new messages