Information générale
Catégorie:
COM/DCOM et OLE Automation
Let us suppose you need to work with paragrphs 3 to 6. Then it should be something like this:
with oWord.Activedocument
lnstart=.paragraphs(3).Range.Start
lnend=.paragraphs(7).Range.Start
.Range(lnstart,lnend).Borders(wdBorderLeft).LineStyle = wdLineStyleSingle
.....
>I need to put a border around a group of paragraphs. If I use the .Borders.Enable = .T. every paragraph has a full border, which is not what I want. I know this is probably possible with the paragraphs collection property but I can't find examples of actual code. Does anyone have a code example that draws a single border around multiple paragraphs?
>
>TIA.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement