View Single Post
 
Old Today, 12:40 AM
RobiNew RobiNew is offline Windows 11 Office 2016
Competent Performer
 
Join Date: Sep 2023
Posts: 214
RobiNew is on a distinguished road
Default

Thanks a lot, macropod! But the code here below cannot find anything. My fault?
Code:
Sub MakeLinksMP()
Application.ScreenUpdating = False
With ActiveDocument
  With .Range
    With .Find
      .Text = "https://[! ]{1,}"
      .Execute
    End With
If Not .Find.found Then MsgBox "Not found"
    Do While .Find.found
      .Duplicate.AutoFormat
      .Collapse wdCollapseEnd
      .Find.Execute
    Loop
  End With
End With
Application.ScreenUpdating = True
End Sub

Last edited by macropod; Today at 05:24 PM. Reason: Added code tags - again
Reply With Quote