Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Automation - Table Objects
Message
From
26/10/2006 13:00:30
 
 
To
25/10/2006 14:45:47
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01164187
Message ID:
01164757
Views:
13
>Ok the error message is gone but I still have a problem. All of the text in the cell is bold and not just the first word. In checking the book the value for the constant wdWord is 2. So either the selection is not equal to one word or the Font.Bold setting is being applied to the whole cell and not just the selection.
>
>.Cells[1].Range.InsertAfter( lcDescription )
>.Cells[1].Range.Expand( 2 )
>.Cells[1].Range.Font.Bold = .T.

I think when you do InsertAfter, the new text is added to the existing range. You need to collapse the range and then set it to what you want to bold.

Tamar
Previous
Reply
Map
View

Click here to load this message in the networking platform