Ummm... You are aware of the problems with using Master docs?
This could have something to do with it. Do a search on Master docs at the
MVP site - if this is news to you.
>Thanks Russel for your reply.
>I was not aware of that syntax so thank you.
>Unfortunately however it did not work in a master document when it was not
>active or visible.
>I managed to get the Word.Selection.TypeBackspace to work to delete a
>section when the section and the section break were all selected at once.
>I have not been able to determine if this is a Microsoft problem with code
>which simply does not work when a master document and word object is not
>active or visible or whether it is a Master Document problem.
>> Something else you could try, David:
>> This will delete the section break if the cursor is just before it or the
>> break is selected
>> I haven't tested it under your circumstances, though!
>> >When programming Word from a VB application the following methods fail
>> >the application is not visible . They work fine if it is visible :
>> > WordObject.Selection.Delete 'Unit:=wdCharacter, Count:=1
>> > and
>> > WordObject.Selection.Cut
>> >Word.Selection.TypeBackspace works but can't be used to delete a
>> >a consequence I am having to make the document visible before deleting
>> >Any suggestions would be gratefully received.
>> >Thanks in advance
>> >David A. Wright