Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WORD Paragraphs collection, how to use it for a border?
Message
 
À
11/03/2003 11:51:36
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00764309
Message ID:
00764350
Vues:
24
This message has been marked as the solution to the initial question of the thread.
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
Fil
Voir

Click here to load this message in the networking platform