Problem deleting a paragraph

F

FuriousCanis

Hi All

I'm using the following vba to remove a bookmark and paragraph

WordDocOnlMemAcc.Bookmarks("Line1").Select

WordDocOnlMemAcc.Bookmarks("line1").Range.Paragraphs(1).Range.Delete

WordDocOnlMemAcc is the object representing the document in use.

If i run the code normally the bookmark is deleted, if i step through
the code the paragraph gets deleted as i wanted. Any ideas what the
problem/solution is?

cheers

Keith
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top