R
Robert
I have a template with a dialog box. If a checkbox is not
checked, the line containing the bookmark is deleted when
the dialog box is closed, like so:
If UserForm1.CheckBox1.Value = False Then
ActiveDocument.Bookmarks("b1").Select
ActiveDocument.Bookmarks("\line").Delete
End If
I tried using Documents("template.dot") instead, and that
didn't work either.
How do you delete a line with a bookmark in it? I am using
the bookmark to identify the line. Should I be doing this
some other way? Thanks.
checked, the line containing the bookmark is deleted when
the dialog box is closed, like so:
If UserForm1.CheckBox1.Value = False Then
ActiveDocument.Bookmarks("b1").Select
ActiveDocument.Bookmarks("\line").Delete
End If
I tried using Documents("template.dot") instead, and that
didn't work either.
How do you delete a line with a bookmark in it? I am using
the bookmark to identify the line. Should I be doing this
some other way? Thanks.