Pegasus0990
Technical User
thread707-1009355
the basic solution was the following. it works great but is there a easy way to expand it to satisfy my question below? I modified the original slightly to adjust to my code.
[VBCODE]
Selection.GoTo What:=wdGoToBookmark, Name:="bookmark1"
Selection.Bookmarks("\Line").Range.Delete
[/VBCODE]
//what the file looks like in word,
//note *@ = "bookmark1." *#= "bookmark2." *$ = "bookmark3."
*@1.01a Question 1
*#Answer 1
COA
*$COA1
//
What VB code would help me delete all the above text if i need the bookmark for '1.01a' to be deleted? note there is a double space between each line provided, and "Answer1" and "COA1" are indented.
thanks for all help
Justin
the basic solution was the following. it works great but is there a easy way to expand it to satisfy my question below? I modified the original slightly to adjust to my code.
[VBCODE]
Selection.GoTo What:=wdGoToBookmark, Name:="bookmark1"
Selection.Bookmarks("\Line").Range.Delete
[/VBCODE]
//what the file looks like in word,
//note *@ = "bookmark1." *#= "bookmark2." *$ = "bookmark3."
*@1.01a Question 1
*#Answer 1
COA
*$COA1
//
What VB code would help me delete all the above text if i need the bookmark for '1.01a' to be deleted? note there is a double space between each line provided, and "Answer1" and "COA1" are indented.
thanks for all help
Justin