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: Thomas Maffucci <email@hidden>
- Date: Fri, 27 Feb 2009 13:45:36 -0500
- Thread-topic: AS + MS Word 2008 and vertical alignment in table cells
>Pinus wrote
>Playing around with AppleScript + MS Word >2008, I found the
>possibility to set vertical alignment in >Word's table cells using :
>"set vertical alignment of mCell11 to align >vertical center"
>.. but it seems that it has no effect in the >vertical alignment of the
>corresponding cell anyway (with no error).
The problem is that the cell height must be be larger than .18" to determine
if the vertical alignment has changed. I changed the height to .50" and you
can see that the vertical alignment was changed to center by the following
script.
I couldn't script the row height change however, I had to do this manually.
If anyone knows how to do this please share.
tell application "Microsoft Word"
set mCell11 to cell 1 of row 1 of table 1 of active document -- word
--set Hcell to "0.50" & " \""
--set height of mCell11 to Hcell
set vertical alignment of mCell11 to align vertical center -- word
--set mCell11 to "A1" -- excel
--set vertical alignment of cell mCell11 of worksheet 1 to vertical
--alignment center -- excel
end tell
_______________________________________________
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