Budget Programmer was telling us:
Budget Programmer nous racontait que :
> Hello,
> I have a 3 column table that is produced for me (I have no control
[quoted text clipped - 3 lines]
> and that I'm eliminating leading spaces.
> Many Thanks.
A fast way to eliminate leading spaces is to select the column, set the
alignment to Center, then back to what it was before. (If it is already set
to Center, set to Left, then back to Center)

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
Budget Programmer - 05 Jan 2006 02:02 GMT
Cela fonctionne bien. Merci.

Signature
Programmer on Budget
> Budget Programmer was telling us:
> Budget Programmer nous racontait que :
[quoted text clipped - 10 lines]
> alignment to Center, then back to what it was before. (If it is already set
> to Center, set to Left, then back to Center)
Budget Programmer - 05 Jan 2006 14:55 GMT
Jean-Guy,
Thiw worked when I did it "manually" in word. But I can't get it to work in
a Macro. I'm using the method:
' Select the column
Selection.Columns(lngCurrentColumn).Select
' Center Justify
Selection.ParagraphFormat.Alignment = wdAlignParagraphCenter
' Left Justify (this should delete leading blanks)
Selection.ParagraphFormat.Alignment = wdAlignParagraphLeft
It executes OK. When I step through the code, I can see the column center
justified, but when the next step is executed, it keeps the original leading
space. Again, it works great when I do it "manually" in the word client.
Thanks for your help.

Signature
Programmer on Budget
> Budget Programmer was telling us:
> Budget Programmer nous racontait que :
[quoted text clipped - 10 lines]
> alignment to Center, then back to what it was before. (If it is already set
> to Center, set to Left, then back to Center)
Jean-Guy Marcil - 05 Jan 2006 20:54 GMT
Budget Programmer was telling us:
Budget Programmer nous racontait que :
> Jean-Guy,
> Thiw worked when I did it "manually" in word. But I can't get it to
[quoted text clipped - 11 lines]
> original leading space. Again, it works great when I do it
> "manually" in the word client.
Ah, right, in this case, try this (Note that you have to select the text
first)
Application.CommandBars("Formatting").Controls("Center").Execute
Selection.ParagraphFormat.Alignment = wdAlignParagraphLeft

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org