Code:Sub M_snb() sn = [B3:B12] For j = 1 To UBound(sn) sn(j, 1) = Replace(Replace(StrConv(Replace(Replace(sn(j, 1), ".", ". "), "/", "/ "), 3), ". ", "."), "/ ", "/") st = Split(sn(j, 1)) For jj = 0 To UBound(st) If st(jj) Like "*[0-9]*" Then st(jj) = UCase(st(jj)) Next sn(j, 1) = Join(st) For Each it In Split("di da con per mm in a e la le") If InStr(1, sn(j, 1) & " ", " " & it & " ", 1) Then sn(j, 1) = Trim(Replace(Replace(sn(j, 1) & " ", " " & UCase(it) & " ", " " & it & " "), " " & StrConv(it, 3) & " ", " " & it & " ")) Next Next [G3:G12] = sn End Sub




Reply With Quote
Bookmarks