Re: AS + MS Word 2008 and vertical alignment in table cells
Re: AS + MS Word 2008 and vertical alignment in table cells
- Subject: Re: AS + MS Word 2008 and vertical alignment in table cells
- From: Stan Cleveland <email@hidden>
- Date: Fri, 27 Feb 2009 11:25:10 -0800
- Thread-topic: AS + MS Word 2008 and vertical alignment in table cells
On 2/27/09 10:45 AM, "Thomas Maffucci" wrote:
> I couldn't script the row height change however, I had to do this manually.
> If anyone knows how to do this please share.
This works here, Thomas:
tell application "Microsoft Word"
tell cell 2 of row 3 of table 1 of document 1
-- or 'tell row 3 of table 1 of document 1'
set height rule to row height at least -- or 'row height exactly'
set height to 50 -- points
end tell
end tell
Both 'tell cell' and 'tell row' change the height of the entire row. It
appears that the height units are points, but that might be configurable.
The 'height rule' parameter allows you to control whether the row height
should be fixed or expandable to accomodate content. The 'row height
exactly' constant keeps the height constant regardless of the amount of
content, whereas 'row height at least' allows row height to increase as
content increases. A third constant 'row height auto' is, well, automatic.
HTH,
Stan C.
_______________________________________________
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