🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.delphi.language.delphi.general
1 messages
1 total messages Started by bellfieldpark Thu, 26 Mar 2009 11:59
Replacing text in a Word bookmark
#126
Author: bellfieldpark
Date: Thu, 26 Mar 2009 11:59
14 lines
1693 bytes
I am using automation to insert data into a Word document via a
bookmark.  However it does not remove what is already there.

For example,
If I tried:
vDocument.Bookmarks.Item(vBookmark).Range.Text := 'ONE';
vDocument.Bookmarks.Item(vBookmark).Range.Text := 'TWO/';
vDocument.Bookmarks.Item(vBookmark).Range.Text := 'THREE/';

 then the Word document shows THREE/TWO/ONE instead of just THREE/

How do I clear the data in the bookmark first?

Neil
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads