B
basil
Hello
Is their a macro around that well do roto13 code?
thanks
Basil
Is their a macro around that well do roto13 code?
thanks
Basil
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Bernard Liengme said:PS: if you Google for this use ROT13 not ROTO13
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email
Bob Phillips said:It's pretty simple
Public Function encrypt(pInput As String)
Dim n As Integer
Dim i As Integer
n = 13
For i = 1 To Len(pInput)
Mid(pInput, i, 1) = Chr(Asc(Mid(pInput, i, 1)) + n)
Next i
encrypt = pInput
End Function
Public Function decrypt(pInput As String)
Dim n As Integer
Dim i As Integer
n = 13
For i = 1 To Len(pInput)
Mid(pInput, i, 1) = Chr(Asc(Mid(pInput, i, 1)) - n)
Next i
decrypt = pInput
End Function
--
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my
addy)
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.