Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Automation - Table Cells Formatting
Message
From
25/10/2002 16:33:38
 
 
To
25/10/2002 16:24:09
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00715489
Message ID:
00715643
Views:
11
Hold it ... I figured it out.

Just had to put in ... .MoveRight(,1) ... to break the extended selection.

Then it worked fine.

Thanks again for your help.



>Well, having solved that problem ...
>
>Here is the next ... same sort of idea ...
>
>This time, I would like to UNDERLINE the data portion of the entry.
>
>This code underlines both the prompt and the data. (No good)
>
>Any tips on this ?
>
>
>
>oRange = oTable.Rows[1].Cells[2].Range
>oRange.InsertAfter("Referral: "+ALLTRIM(qheads.referral))
>oRange.ParagraphFormat.Alignment=wdAlignParagraphLeft
>oRange.Select
>oWord.Selection.FormattedText.Underline
>WITH oWord.Selection
> .Homekey(wdSelectionRow)
> FOR j = 1 TO 10
> .MoveRight(wdCharacter,1,wdExtend)
> ENDFOR
> .Font.Bold=.t.
> .FormattedText.Underline=wdUnderlineNone
>
> FOR j = 1 TO LEN(ALLTRIM(qheads.referral))
> .MoveRight(wdCharacter,1,wdExtend)
> ENDFOR
> .FormattedText.Underline=wdUnderlineSingle
>ENDWITH
Previous
Reply
Map
View

Click here to load this message in the networking platform