M
Mark Kurten
In my word doc I have a sentence.
Ex.
This is a sentence to illustrate my problem. This line has a paragraph
marker after it.¶
Here is the code i use to delete lines.
APPWORD.ActiveDocument.Bookmarks(strBM).Range.Select
APPWORD.Selection.Delete
APPWORD.Selection.GoTo What:=wdGoToBookmark, Name:="\Line"
Length = Len(APPWORD.Selection)
If Length = 1 Then
APPWORD.Selection.Delete Unit:=wdCharacter, Count:=1
End If
This works great when I have the visible property set to true. Ex.
SomeWordDocument.Visible = true
When i set the visible property to false, the bookmark gets deleted but the
line doesn't get deleted.
Makes no sense to me. When the visible property is false, i have 2 blank
lines in between these paragraphs when I only should have 1.
Thanks in advance for any insight.
Ex.
This is a sentence to illustrate my problem. This line has a paragraph
marker after it.¶
Here is the code i use to delete lines.
APPWORD.ActiveDocument.Bookmarks(strBM).Range.Select
APPWORD.Selection.Delete
APPWORD.Selection.GoTo What:=wdGoToBookmark, Name:="\Line"
Length = Len(APPWORD.Selection)
If Length = 1 Then
APPWORD.Selection.Delete Unit:=wdCharacter, Count:=1
End If
This works great when I have the visible property set to true. Ex.
SomeWordDocument.Visible = true
When i set the visible property to false, the bookmark gets deleted but the
line doesn't get deleted.
Makes no sense to me. When the visible property is false, i have 2 blank
lines in between these paragraphs when I only should have 1.
Thanks in advance for any insight.