View Single Post
 
Old 06-21-2023, 08:41 AM
gmaxey gmaxey is offline Windows 10 Office 2019
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,601
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

Brian,


This is just another abbreviated version of your code:

Code:
Sub MoveToOutTakes()
Dim oRng As Range
  Set oRng = ActiveDocument.Range
  oRng.Collapse wdCollapseEnd
  If Selection.Start = Selection.End Then
    MsgBox "Nothing selected", vbOKOnly
    Exit Sub
  End If
  oRng.FormattedText = Selection.FormattedText
  Selection.Range.Delete
End Sub
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote