Posts

Showing posts from 2023

Regex vba searching in workbook

 Option Explicit Sub qd_Flag_Cells_by_RegeXeq() ' ' Converts each text hyperlink selected into a working hyperlink ' Dim strSearch As String Application.ScreenUpdating = False strSearch = InputBox(Prompt:="Search String.", _           title:="Search")                    If strSearch = vbNullString Then            Exit Sub         Else             Dim re As New RegExp             re.Pattern = strSearch             re.IgnoreCase = True                          Dim xCell As Range             For Each xCell In Selection                 If re.Test(xCell.Text) = True Then                    xCel...