Results 1 to 5 of 5

Thread: Macro to remove range of unicode characters

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    I found the solution by myself!

    Sub Replacement()
    ' Replacement Macro
    Sub Replacement()
    Selection.Find.ClearFormatting
    Selection.Find.Replacement.ClearFormatting
    Dim n As Integer
    n = 1000
    Do Until n > 1100
    With Selection.Find
    .Text = ChrW(n)
    .Replacement.Text = ""
    .Forward = True
    .Wrap = wdFindStop
    End With
    Selection.Find.Execute Replace:=wdReplaceAll
    n = n + 1
    Loop
    End Sub
    Last edited by Aussiebear; 08-01-2022 at 01:07 PM. Reason: Added code tags to supplied code

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •