Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 07-24-2020, 09:34 AM
eduzs eduzs is offline Macro to add paragraph borders Windows 10 Macro to add paragraph borders Office 2019
Expert
 
Join Date: May 2017
Posts: 266
eduzs is on a distinguished road
Default

Using style as Guessed suggested:
You should first create "MyStyle" style.

Code:
Dim rng As range, brd As Border

Set rng = ActiveDocument.range
With rng.Find
.Text = "Para*^13"
.MatchWildcards = True
Do While .Execute
    rng.Style = "MyStyle"
Loop
End With
Reply With Quote
 

Tags
microsoft word, paragraph formatting, vba macro

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
macro to insert paragraph Hockey Word VBA 5 01-28-2020 06:21 AM
Macro to add paragraph borders VBA / macro to set paragraph spacing paulkaye Outlook 4 01-23-2017 06:21 AM
Get paragraph number from macro brice Word VBA 4 06-30-2015 03:29 AM
Macro to add paragraph borders Macro to set page borders Jennifer Murphy Word VBA 1 11-04-2012 02:45 AM
Macro to add paragraph borders Page-crossing borders in a table with hidden between-cell borders tenpaiman Word 2 08-08-2012 07:20 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:35 AM.


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