Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-07-2023, 04:49 PM
docspecial docspecial is offline Add braces around strikethrough text Windows 10 Add braces around strikethrough text Office 2021
Novice
Add braces around strikethrough text
 
Join Date: Jun 2023
Posts: 2
docspecial is on a distinguished road
Default Add braces around strikethrough text

I found a macro to add brackets around underlined text and remove the underline. Now I need to apply braces around strings of strikethrough text.

The code below works for the underlined text, but I still need to address the strikethrough text.

Sub Tag_Under_Line()
Selection.ClearFormatting
Selection.HomeKey wdStory, wdMove
Selection.Find.Font.Underline = wdUnderlineSingle
Selection.Find.Execute ""
Do Until Selection.Find.Found = False
Selection.Font.Underline = wdUnderlineNone
Selection.InsertBefore "["
Selection.InsertAfter "]"
Selection.MoveRight
Selection.Find.Execute ""


Loop
End Sub


Appreciate any help!
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Add braces around strikethrough text Hyperlink text automatically generated too long and has braces { } greenman1889 Word 2 11-20-2019 03:57 PM
Add braces around strikethrough text Superscript directly above strikethrough bowlfreak_not Word 1 07-04-2018 03:36 PM
Add braces around strikethrough text Edit an existing word document - red strikethrough when deleting siam Word 1 11-02-2017 04:30 AM
Add braces around strikethrough text Spaces inside Fieldcode curly braces MANOHAR Word VBA 16 01-10-2017 11:48 AM
Replacing curly braces in a wildcard F&R Ulodesk Word 9 02-21-2014 07:28 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:53 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