Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 04-24-2018, 04:38 PM
eduzs eduzs is offline Reformat a paragraph that starts with certain words Windows 10 Reformat a paragraph that starts with certain words Office 2010 32bit
Expert
 
Join Date: May 2017
Posts: 266
eduzs is on a distinguished road
Default

You can start with something like that:

Backup your files before test, test before use, use at your own

Code:
Sub test()
Dim MyPara As Paragraph
For Each MyPara In ActiveDocument.Paragraphs
    If Left(MyPara.Range.Text, 6) = "Friday" Then
        MyPara.Range.Font.Bold = True
        MyPara.Range.ParagraphFormat.KeepWithNext = True
    End If
Next

End Sub
Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reformat a paragraph that starts with certain words Find a sentence that starts with certain words and change the style MAHE Word VBA 2 02-26-2018 08:40 AM
Can I have 2 styles in one paragraph in order to populate a TOC with the first words only? mlkmnsgrl Word 6 01-01-2015 10:44 AM
Adding All Non-spelling Words in a Paragraph to Dictionary SQLUSA Word 5 07-13-2012 04:05 AM
reformat file renato Word 1 06-13-2012 06:32 AM
Huge spaces between words in a justified paragraph! techdaemon Word 2 02-22-2010 12:17 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:55 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft