Table in Word 2012
Table in Word 2012
- Subject: Table in Word 2012
- From: Jeremy Roussak <email@hidden>
- Date: Wed, 14 Nov 2012 11:11:41 +0000
Hi,
I think this should be simple, but I'm falling at the first hurdle.
I want a script to convert Word's current selection, which is a series of lines of text with cells delimited by tabs, into a table; I'll then apply some formatting. I've tried
tell application "Microsoft Word" set txt to selection's text object convert to table txt end tell
which works, but ignores the tabs (I get a table with only one column). If I try
tell application "Microsoft Word" set txt to selection's text object convert to table txt separator separate by tabs end tell which I think should work, I get an error: "text object of selection doesn't understand the convert to table message".
Any ideas?
Jeremy
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden