I have a script to do some formatting of tables in Word 2008 and I still need a few other additions if someone could please help. I would have thought that I could figure out the syntax by now but no matter how hard I try nothing seems to work. Please help. Here’s the script I currently have:
tell application "Microsoft Word"
set outside color of border options of selection to {47, 102, 129}
set inside color of border options of selection to {47, 102, 129}
repeat with thisTable in (get tables of selection)
set left padding of thisTable to 0 -- points
set right padding of thisTable to 0 -- points
set preferred width of thisTable to 396 -- points
end repeat
end tell
All I need to add is to turn “Allow row to break across pages” to false and set the select table text to a specific style like Chart_body.
Thanks,
~peter