![]() |
|
|
Thread Tools | Display Modes |
#2
|
|||
|
|||
![]() Code:
Sub ScratchMacro() 'A basic Word macro coded by Greg Maxey Dim oRng As Word.Range Dim oRngProcess As Word.Range Set oRng = Selection.Range Set oRngProcess = oRng.Duplicate With oRng.Find .Text = InputBox("Enter text to find.") Do .Execute If oRng.InRange(oRngProcess) Then With oRng .Font.ColorIndex = wdRed .Font.StrikeThrough = True .Collapse wdCollapseEnd End With Else Exit Do End If Loop End With End Sub |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
d4okeefe | Word VBA | 18 | 06-30-2022 11:35 PM |
Macro to find text in between two characters and then format selected text? | qcom | Word | 5 | 02-19-2015 11:23 PM |
![]() |
omahadivision | Excel Programming | 12 | 11-23-2013 12:10 PM |
![]() |
errtu | Word | 1 | 01-31-2013 02:09 PM |
![]() |
paulkaye | Word | 4 | 12-06-2011 11:05 PM |