B
Bryan Dickerson
The following code snippet is from a VB6 routine that is trying to format
the columns in a table. It, however, gets an error upon attempting to set
the PreferredWidthType property. Any ideas?
Set oTable = oWDoc.Tables(1)
'
' code that works and is unimportant to this question goes here
'
oTable.Rows(1).Select
oWord.Selection.MoveDown Unit:=wdLine, Count:=1, Extend:=wdExtend
Set oRange = oWord.Selection.Range
With oRange
.Columns(1).PreferredWidthType = wdPreferredWidthPoints
.Columns(1).PreferredWidth = oWord.InchesToPoints(0.4)
End With
TIA!
the columns in a table. It, however, gets an error upon attempting to set
the PreferredWidthType property. Any ideas?
Set oTable = oWDoc.Tables(1)
'
' code that works and is unimportant to this question goes here
'
oTable.Rows(1).Select
oWord.Selection.MoveDown Unit:=wdLine, Count:=1, Extend:=wdExtend
Set oRange = oWord.Selection.Range
With oRange
.Columns(1).PreferredWidthType = wdPreferredWidthPoints
.Columns(1).PreferredWidth = oWord.InchesToPoints(0.4)
End With
TIA!