Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Doug Robbins
 
Posts: n/a
Default

Yes, the first can be done with some vba code that searches for the word and
then sets a Range variable to the .Range of the Selection.Bookmarks("\line")
range.

This will give you an idea of the syntax

' Macro to round all numbers in a document

' Macro created 19/7/00 by Doug Robbins

'

Selection.HomeKey wdStory
Selection.Find.ClearFormatting
With Selection.Find
Do While .Execute(FindText:="[0-9]{1,}.[0-9]{3,}", MatchWildcards: =
True, Wrap:=wdFindContinue, Forward:=True) = True
Selection.Range.Text = Round(Selection.Range.Text, 2)
Loop
End With

The second you can do with a wildcard Replace.

See the article "Finding and replacing characters using wildcards" at:

http://word.mvps.org/FAQs/General/UsingWildcards.htm


--
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
"Susan" wrote in message
...
I have MS Office 2003. What is the best way to copy text into application
and then extract only the lines containing certain word? Can I do that with
MS Word?

Is there also a way to replace text in line with blanks after certain
delimeter?

Thanks for information.
Susan



 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to remove graphic lines (both horizontal and vertical lines)? Cris J Microsoft Word Help 1 July 12th 05 05:59 AM
Using Border Lines in a Form tacho Microsoft Word Help 6 May 5th 05 11:30 PM
How do I get rid of heavy dashed lines intermittently appearing u. connor8205k Microsoft Word Help 2 April 19th 05 07:13 PM
extra long lines and word split at end of line without hyphenation RSA2004 Microsoft Word Help 1 January 28th 05 12:15 PM
Change Line Count to not count blank lines Carol Microsoft Word Help 4 November 27th 04 01:46 PM


All times are GMT +1. The time now is 08:00 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"