View Single Post
 
Old 06-10-2014, 02:22 PM
gmaxey gmaxey is offline Windows 7 32bit Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,617
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

Code:
Sub FindTrademarks()
Dim oDoc_Source As Document
Dim oDoc_Target As Document
 Dim oRange As Range
Dim n As Long
Dim strAllFound As String
  Application.ScreenUpdating = False
  Set oDoc_Source = ActiveDocument
  Set oDoc_Target = Documents.Add
  With oDoc_Source
    Set oRange = .Range
    With oRange.Find
      .Text = Chr(174)
      While .Execute
        oRange.MoveStart wdWord, -1
        oDoc_Target.Range.InsertAfter oRange & vbCr
        
        oRange.Collapse wdCollapseEnd
      Wend
    End With
  End With
End Sub
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote