code to clear text after a bookmark

C

Colin Telfer

can anybody help me with some code for MS word 2003. I want to clear the
text / characters/ numbers after a bookmark leaving the bookmark intact.

.Bookmarks("Fax_no").Select
Selection.MoveRight Unit:=wdCharacter, Count:=15, Extend:=wdExtend
Selection.Delete Unit:=wdCharacter, Count:=1

this is the code i have sussed out so far, the only thing is it deletes the
line and the bookmark which i don't wish to do.

Can anybody help?

Also can anybody recommend a book for word VBA as i find the MS online help
manual useless?

Cheers
Colin
 
C

Colin Telfer

I have tried this cods and it deletes the bookmark moving all the other text
up the page which i don't want to do.
i owuld have thought there would be a clear command to simply clear text.

Any further help welcome

Regards

Colin
 
D

Doug Robbins - Word MVP

See my response to your post in the customization newsgroup. Please do not
post the same question separately to multiple newsgroups.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

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