Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Table in word, Colum width?
Message
From
23/10/2000 13:02:49
 
 
To
23/10/2000 12:20:07
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00432936
Message ID:
00432984
Views:
26
>Peter,
>
>When I went into Word and recorded a macro of changing the width of a column and then looked in the VBA editor, this is what I got:
Selection.Columns.PreferredWidthType = wdPreferredWidthPoints
>Selection.Columns.PreferredWidth = InchesToPoints(1.28)
I had checked the box that says that I preferred to see my numbers in inches.
>
>See if oTable.Columns(1).SetWidth=InchesToPoints(.95) or oTable.Columns(1).PreferredWidth=InchesToPoints(.95) works.

this is what I get:

Sub Macro1()
'
' Macro1 Macro
' Macro recorded 10/23/2000 by Peter Alexander Cortiel
'
Selection.Tables(1).Columns(1).SetWidth ColumnWidth:=122.4, RulerStyle:= _
wdAdjustNone
Selection.Tables(1).Columns(2).SetWidth ColumnWidth:=36, RulerStyle:= _
wdAdjustNone
Selection.Tables(1).Columns(3).SetWidth ColumnWidth:=72, RulerStyle:= _
wdAdjustNone
Selection.Tables(1).Columns(4).SetWidth ColumnWidth:=135, RulerStyle:= _
wdAdjustNone
End Sub


And Tamar does not give a full listing of parameters :-(

It's very frustrating.
But thanks anyway

Peter
Peter Cortiel
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform