Word Macro Which Makes Bold The Parts Fall Left Side Of The Either : Or )
I shared a document.
I want Sheet 1 will be like Sheet 2.
How can we write such macro?
Word Macro Which Makes Bold The Parts Fall Left Side Of The Either : Or )
I shared a document.
I want Sheet 1 will be like Sheet 2.
How can we write such macro?
Last edited by zanshin777; 11-04-2022 at 07:41 AM.
Try this:
![]()
Selection.Find.ClearFormatting Selection.Find.Replacement.ClearFormatting Selection.Find.Replacement.Font.Bold = True With Selection.Find .Text = "^13([!^13]@:)" .Replacement.Text = "^p\1" .Forward = True .Wrap = wdFindContinue .Format = True .MatchWildcards = True .Execute Replace:=wdReplaceAll .Text = "^13([!^13]@\))" .Execute Replace:=wdReplaceAll End With
It perfectly works.
Thank you very much.
Glad to help!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks