Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to delete some text....

Status
Not open for further replies.

nesplb

Programmer
Jul 29, 2003
109
NO
Hi!

I guess this is a quite easy question for you guys out there.

-I just want to delete the text in the current paragraph (The paragraph in which the caret is) and replace it with some new text....

Pål Nesteby

PDC-Tangen
Norway
 
Hi Pål,

If I understand correctly, I guess the easiest way is ..

Code:
Selection.Paragraphs(1).Range.Text = "Whatever new text you want"

Enjoy,
Tony
 
Thank you!


Pål Nesteby

PDC-Tangen
Norway
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top