Share via

AppleScript command to move from one table cell to the next?

Anonymous
2013-04-10T17:08:19+00:00

I'm trying to find AppleScript equivalent to the VBA command "Selection.MoveRight Unit:=wdCell"

In AppleScript I can create a new document from a template, jump to a bookmark and insert text. But I am stuck with moving to the next cell and insert the next junk of text ...

Any ideas, anyone?

Oliver

===

In VB I do:

Selection.GoTo What:=wdGoToBookmark, Name:="LabelStart"

Selection.TypeText Text:="some label.."

Selection.MoveRight Unit:=wdCell

And in AppleScript :

-- create a new Word document based on a template

tell application "Finder"

set myPath to ((path to home folder) as text) & "Documents:Seminar Pro:Templates:imLabels.dotm"

set thePath to a reference to alias myPath

open thePath as alias

end tell

-- wait, to allow Word to get ready

delay 3

-- jump to the first Label

tell application "Microsoft Word"

select bookmark "LabelStart" of active document

end tell

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2013-04-11T11:45:13+00:00

    Was this answer helpful?

    0 comments No comments