View Single Post
 
Old 11-14-2013, 01:55 PM
macropod's Avatar
macropod macropod is offline Windows 7 32bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,359
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by New Daddy View Post
As a companion macro to this one, would it be possible to set the row heights and column widths at the current values as "fixed"? Going through each row and column to fix the values was laborious.
Not without difficulty and some arbitrariness in the results. What one would have to devise is a means of finding out how high each undefined row is and how wide each undefined column is. For:
• rows, that would presumably entail checking the vertical offset of the first character in each cell on the current row against the vertical offset of the first character in each cell on the next row or, if it's the last row in the table, the next paragraph.
• columns, one would have to compare the relative horizontal offsets of the, say, first character in each cell - ensuring their paragraph formatting had 0 left indent and left/justified alignment.

That's because, if the height or width is not set to an 'exact' or 'at least' value (rows only), retrieving it returns a meaningless 99999. And an 'at least' value can't be turned into a meaningful column width, as columns don't have an 'at least' parameter and the 'at least' value may not be the actual value.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote