oCindy.FuriouslyScribblingInMargin("AutoFox")
Thanks, Della.
>The SetWidth method, as in many methods in Word, works only with points, regardless of how you've set Word's UI. Which is good, since we don't have to care about the user's settings, but it's not so good because I really can't relate to how big 196 points is
. But there is a way...read on.
>
>>See if oTable.Columns(1).SetWidth=InchesToPoints(.95)
or oTable.Columns(1).PreferredWidth=InchesToPoints(.95)
works.
>
>These should work if you change "InchesToPoints(.95)" to "oWord.InchesToPoints(.95)". Even better, don't call Word's InchesToPoints method--it's really slow in comparison to VFP's math functions. The conversion is simple: there are 72 points in an inch. The following is much faster:
>#DEFINE autoInches2Points 72
>oTable.Columns[1].SetWidth = .95 * autoInches2Points
>Now it's easy to see that you mean .95 inches, but Word gets the value it wants <s>.
>
>Hope this helps,
>
> - della Martin