Created
March 15, 2018 00:03
-
-
Save aadennis/8194f52d384d6493dd2b9b66757f7f1a to your computer and use it in GitHub Desktop.
Word vba - delete a line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
Sub DeleteLine() | |
' | |
' Utilities Macro | |
' | |
' | |
Application.ScreenUpdating = False | |
Selection.HomeKey Unit:=wdStory | |
With Selection.Find | |
.ClearFormatting | |
.Wrap = wdFindStop | |
.Text = "Uniqueid" | |
Do While .Execute | |
ActiveDocument.Bookmarks("\Line").Range.Delete | |
Loop | |
End With | |
Application.ScreenUpdating = True | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment