Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Document Management / March 2008

Tip: Looking for answers? Try searching our database.

How to apply HeadingX to all paragraphs containing search string

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Paul - 20 Mar 2008 17:28 GMT
I'm using wildcards to highlight all paragraphs containing a certain
string expression.  I then click on Heading 1 (or 2, or whatever
number) to apply the Heading 1 style.  This doesn't make the paragraph
into a Heading 1 paragraph.  After some experimenting, I realized it's
because the highlighted portions do not encompass the whole
paragraph.  I have many such style applications to do, for various
heading levels, each relying on the Find function to highlight a
certain string expression in all applicable paragraphs.  Is there a
way to accomplish this?

Thanks.
Paul - 20 Mar 2008 17:35 GMT
> I'm using wildcards to highlight all paragraphs containing a certain
> string expression.  I then click on Heading 1 (or 2, or whatever
[quoted text clipped - 5 lines]
> certain string expression in all applicable paragraphs.  Is there a
> way to accomplish this?

A second best solution would be to take all paragraphs to which I
wanted to apply (say) Heading 2 and set the outline level so that
shows up in Outline View only when 2nd level headings are expanded
out.  I haven't been able to access the Outline Level in the Reveal
Formatting panel.  Outline Level only shows up if the paragraph is
actually of style Heading 1, and the whole problem is that it is
difficult to apply the proper Heading styles across the whole document
(original post).

Thanks.
PamC - 20 Mar 2008 20:06 GMT
Your5 method could also create lots of unlinked styles.  Not so good.  
Instead create (I would just record) a macro that finds the string, deselects
the string by moving the cursor, and then applies the style. (As long as  the
cursor is in the ppg--but has nothing selected--the style will apply to the
entire paragraph.)  Then edit the code to make it loop.  I got my  tips on
how to do that from  an Editorium.com article
(blog.editorium.com/2002/03/20/repeating-macros/) though I suspect  that the
Word MVP site has similar helps.

PamC

> I'm using wildcards to highlight all paragraphs containing a certain
> string expression.  I then click on Heading 1 (or 2, or whatever
[quoted text clipped - 7 lines]
>
> Thanks.
Paul - 20 Mar 2008 22:32 GMT
Will look into it.  Thanks!

> Your5 method could also create lots of unlinked styles.  Not so good.  
> Instead create (I would just record) a macro that finds the string, deselects
[quoted text clipped - 20 lines]
>
> - Show quoted text -
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.