S
spenningzahl
I have a template Word VBA 2003. This template consist of many
bookmarks consisting of a paragraph text. If a bookmark is not
selected the paragraph should be deleted. Up to this point everything
is OK, but when the paragraph is deleted an extra line break appears.
As a result of this, if many bookmarks are not selected I get a lot of
spaces in the text. Does anybody know how to code this. I would be
very greatful for any help.
I have tried selection.backspace after paragraph.delete, but did not
work.
My code is:
If Opt2_5_Ja = Value Then
ActiveDocument.Bookmarks("bm2_5_2").Select
Paragraph.TypeParagraph
Else
ActiveDocument.Bookmarks("bm2_5_2").Delete
Selection.TypeBackspace
End If
Thanks. Karin
bookmarks consisting of a paragraph text. If a bookmark is not
selected the paragraph should be deleted. Up to this point everything
is OK, but when the paragraph is deleted an extra line break appears.
As a result of this, if many bookmarks are not selected I get a lot of
spaces in the text. Does anybody know how to code this. I would be
very greatful for any help.
I have tried selection.backspace after paragraph.delete, but did not
work.
My code is:
If Opt2_5_Ja = Value Then
ActiveDocument.Bookmarks("bm2_5_2").Select
Paragraph.TypeParagraph
Else
ActiveDocument.Bookmarks("bm2_5_2").Delete
Selection.TypeBackspace
End If
Thanks. Karin