![]() |
|
#1
|
|||
|
|||
![]()
Hi, Shelley Lou! This simple macro seems to do the job:
Code:
Sub Format_Paras_If() 'In active doc's paras that have a tab/colon, bold the strings 'from paras start until the 1st tab/colon excluding list paras. 'Coded by vivka, 12.06.2024 Dim oRng As range Application.ScreenUpdating = False Set oRng = ActiveDocument.range With oRng.Find .ClearFormatting .Forward = True .Wrap = wdFindStop .Format = True .MatchWildcards = True .Replacement.ClearFormatting .text = "[^t:]" Do While .Execute And oRng.ListFormat.ListType = 0 oRng.End = oRng.start oRng.start = oRng.Paragraphs(1).range.start oRng.Font.Bold = True oRng.start = oRng.Paragraphs(1).range.End Loop End With Application.ScreenUpdating = True Set oRng = Nothing End Sub Last edited by vivka; 06-13-2024 at 10:58 PM. |
#2
|
|||
|
|||
![]()
Hi Vivka
Thank you for taking the time to reply to my post. Unfortunately, your code does the same as Andrew's code, quotes need to be removed and the manual numbering should not be bold. Vivka Code.docx |
![]() |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Bold Term Macro that DOES NOT bold terms with Quotation Marks | NotOriginal | Word VBA | 2 | 03-14-2024 02:22 PM |
Bold Header if it is not Bold (Check to see if it is Bold) | armendarizj | Word | 2 | 01-06-2022 05:45 PM |
![]() |
Burt | Word | 6 | 04-06-2019 09:09 AM |
![]() |
footer-assistance | Word | 1 | 06-29-2015 03:49 AM |
![]() |
Pluviophile | Word | 7 | 10-22-2013 10:29 AM |