Previous Thread
Next Thread
Print Thread
Hop To
Applescript Add Row to Table Microsoft Office #571312 02/23/12 09:41 PM
Joined: Feb 2012
Posts: 3
W
waggy-d Offline OP
OP Offline
W
Joined: Feb 2012
Posts: 3
How do you add a row to an existing specific table (ie. Table 2) in an active Microsoft word document via applescript?

I've tried:

Tell application "Microsoft Word"
insert rows at bottom of table 2 of active document
end tell

with no luck?

I've also tried various oher permutations.

Would some be able to help with this?

Thanks

Re: Applescript Add Row to Table Microsoft Office [Re: waggy-d] #571313 02/23/12 10:42 PM
Joined: Apr 2002
Posts: 15,090
Reboot Offline
Muhahahaha
Offline
Muhahahaha
Joined: Apr 2002
Posts: 15,090
Not sure if it matters but what version of Office is it and what version of the OS?

Re: Applescript Add Row to Table Microsoft Office [Re: Reboot] #573615 04/12/12 07:40 PM
Joined: Feb 2012
Posts: 3
W
waggy-d Offline OP
OP Offline
W
Joined: Feb 2012
Posts: 3
Hello. Reboot. I actually figured it out from another post on apple discussions:

tell application "Microsoft Word"
select (last row of table 2 of active document)
insert rows selection position below number of rows 1
end tell

It worked like a charm. I was using Office 2007 for Mac


Moderated by  Acumowchek, MacGizmo, Reboot