Option Compare Database
Option Explicit
Function Shroud(ByVal Text) As String
Const Letter = "0123456789-_abcdefghijklmnopqrstuvwxyz"
Const Transp = "h4ea19_kl5d63xf-2cn0ro78tgjsvipmzqybwu"
Dim i As Integer, p As Integer
For i = 1 To Len(Text)
p = InStr(1, Letter, Mid(Text, i, 1))
If p Then _
Mid(Text, i, 1) = Mid(Transp, p, 1)
Next i
Shroud = Text
End Function
|