Tamar,
If you collapse the range, doesn't that put the cursor too far and out of the range completely?
>>Word 2007
>>
>>Hi all
>>
>>This is the last thing I need to get working. I'm trying to create a bulleted list in a Table in Word so when a line of text wraps, it gives the indent that's needed. I went into Word, started recording a macro, set up a table, then set up the list within. The macro code works beautifully every time I run it in Word.
>>
>>Once I translate it into VFP, however, it seems to be applying the style to the entire table, not the subset of the cell that I want, and this happens when the line oRow.ListFormat.ApplyListTemplateWithLevel(oApp.ListGalleries(wdNumberGallery).ListTemplates(1),.F., wdListApplyToThisPointForward, 2) is executed. Word Macro code is available upon request.
>>
>>What am I not getting?
>
>Without looking at the details of the code, I'm a big believer in collapsing the range after each operation:
>
>
>oRange.Collapse(0)
>
>
>collapses to the end of the range. Sometimes, you also need a paragraph marker or two to keep formatting to only the part you want formatted.
>
>Tamar