modifica la funzione in modo che a fronte di 5 cifre consecutive le sostituisce con 5 asterischi
in questo modo la stringa
testo testo 1 2 3 testo testo testo 1234567 testo testo 1 testo 2 testo 3
viene sostituita da
testo testo 1 2 3 testo testo testo *****67 testo testo 1 testo 2 testo 3
per sostiruire anche le altre cifre seguenti è da aggiustare un attimo la funzione, ma credo che anche così assolva alla sua funzione...
codice:
Function Asterisca(stringa)
lung = 5
Aterisca = ""
For t = 1 To Len(stringa) - lung
x = Mid(stringa, t, lung)
If IsNumeric(x) = True Then
Asterisca = Asterisca & "*****"
t = t + 5
Else
Asterisca = Asterisca & Mid(x, 1, 1)
End If
Next t
End Function
ciao
L.