General information
Category:
COM/DCOM and OLE Automation
Environment versions
Network:
Windows 2003 Server
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only