Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Creating #codes

I am trying to turn email addresses into #Code strings, in order to
stop bots from harvesting them....

To this end I have created the following UDF but the Excel function
"Code() is not accepted. Placing "Application." in front of the word
code does not work either.


Function Hash(s) As String
strL = Len(s)
For i = 1 To strL
'--Hash = Hash & "&#" & Application.Code(Mid(s, i, 1)) & ";"
'--Hash = Hash & "&#" & Code(Mid(s, i, 1)) & ";"
Hash = Hash & "&#" & Mid(s, i, 1) & ";"
Next i
End Function

Any ideas?

Geoff

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a list from multiple (sometimes the same) codes David Excel Discussion (Misc queries) 1 March 9th 10 04:12 PM
explanation of codes in Visual Basic when creating User form Rachel New Users to Excel 2 November 4th 09 11:19 PM
Creating a document to assist with municipal codes LMC[_2_] Setting up and Configuration of Excel 0 October 17th 08 06:41 AM
Creating hyperlinks to a word file with field codes Bobby Excel Discussion (Misc queries) 0 June 26th 08 01:34 PM
Creating UPC Codes... killertofu Excel Discussion (Misc queries) 2 January 31st 06 10:25 PM


All times are GMT +1. The time now is 11:01 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"