I have some code that used to work that doesn't any more. It replaces two hyphens with mdashes, ellipsis with .<nonbreaking>.<nonbreaking>.<nonbreaking>., turns on smart quotes, etc. For some reason it has stopped working. Anybody know why and what I use instead?
Thanks in advance for any help!
-------------------------------
Private Sub Clean()
Home
ActiveWindow.ActivePane.View.Type = wdMasterView
With Selection.Find
On Error Resume Next
.Text = "^p^t"
With .Replacement
.Text = ""
End With
.Execute Format:=True, Replace:=wdReplaceAll
End With
Rem *** Replace double dash with true Mdash ***
With Selection.Find
On Error Resume Next
.Text = " -- "
With .Replacement
.Text = "^+"
End With
.Execute Format:=True, Replace:=wdReplaceAll
End With
With Selection.Find
On Error Resume Next
.Text = "--"
With .Replacement
.Text = "^+"
End With
.Execute Format:=True, Replace:=wdReplaceAll
End With
Rem *** Change problem elipses into .hardspace. combination ***
With Selection.Find
On Error Resume Next
.Text = "..."
With .Replacement
.Text = "." + Chr(9) + "." + Chr(9) + "."
End With
.Execute Format:=True, Replace:=wdReplaceAll
End With
With Selection.Find
On Error Resume Next
.Text = "



