#1
|
|||
|
|||
search paragraph
Hi,
I have a long document, in which each paragraph has the sign "=" I would like to find paragraphs that due to an error do not contain the sign = Is it possible? Thanks Yacov |
#2
|
||||
|
||||
The following macro will highlight any paragraph without the '=' sign
Code:
Sub Macro1() Dim oPara As Paragraph For Each oPara In ActiveDocument.Paragraphs If InStr(1, oPara.Range.Text, "=") = 0 Then oPara.Range.HighlightColorIndex = wdYellow End If Next oPara End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
#3
|
|||
|
|||
thanks a lot. works great
|
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
a macro to replace paragraph mark with a space applies effect on paragraph marks after the selection | drrr | Word VBA | 2 | 08-24-2021 03:05 AM |
Inserting text from a Userform into a Field in a paragraph in a paragraph in a word document | storemaz | Word VBA | 1 | 03-13-2020 08:11 AM |
Macro to search for a particular word, copy the entire paragraph to a new document | Productivity | Word VBA | 2 | 10-25-2019 06:40 AM |
Continuous Paragraph across two columns vs Parallel Column Paragraph | Pinesh | Word | 2 | 03-09-2018 04:24 PM |
Cross-reference to paragraph not updating when paragraph moves | windhoek2010 | Word | 1 | 09-15-2017 08:30 PM |