Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Table in word, Colum width?
Message
De
23/10/2000 13:02:49
 
 
À
23/10/2000 12:20:07
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00432936
Message ID:
00432984
Vues:
27
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform