O
Outatym
I have code to find certain bookmarks then delete their contents (The
bookmark called "PhysicalDamage" below consists of 2 pages, while the
bookmark "SUMMARY_PD" is one row in a table on the last page). The code will
run fine and delete the "SUMMARY_PD" bookmark and row, but will leave blank
space where the "Physical Damage" bookmark used to be. I need this to be
deleted as well.
These bookmarks are pages within a document and are separated by manual page
breaks...if that helps out the process any.
Any idea on how to remove this? Below is part of the code...
If txt_PD_Premium.Text = "" Then
ActiveDocument.Bookmarks("PhysicalDamage").Range.Delete
ActiveDocument.Bookmarks("SUMMARY_PD").Range.Rows.Delete
Else
If txt_PD_Premium.Text = "" Then
I_PDPremium = 0
Else
I_PDPremium = CInt(txt_PD_Premium.Text)
End If
With ActiveDocument
.Bookmarks("SUMMARY_PDAMT").Range _
.InsertBefore "$" + txt_PD_Premium
End With
End If
Thanks for your help!!!
bookmark called "PhysicalDamage" below consists of 2 pages, while the
bookmark "SUMMARY_PD" is one row in a table on the last page). The code will
run fine and delete the "SUMMARY_PD" bookmark and row, but will leave blank
space where the "Physical Damage" bookmark used to be. I need this to be
deleted as well.
These bookmarks are pages within a document and are separated by manual page
breaks...if that helps out the process any.
Any idea on how to remove this? Below is part of the code...
If txt_PD_Premium.Text = "" Then
ActiveDocument.Bookmarks("PhysicalDamage").Range.Delete
ActiveDocument.Bookmarks("SUMMARY_PD").Range.Rows.Delete
Else
If txt_PD_Premium.Text = "" Then
I_PDPremium = 0
Else
I_PDPremium = CInt(txt_PD_Premium.Text)
End If
With ActiveDocument
.Bookmarks("SUMMARY_PDAMT").Range _
.InsertBefore "$" + txt_PD_Premium
End With
End If
Thanks for your help!!!