First enter the following User Defined Functions (UDFs) in a standard module:
Then in B1 enter:
=ChrTest(A1)
In B10 enter:
=ChrTest(A10) and copy down
In C10 enter:
=Within($A$1,B10) and copy
User Defined Functions (UDFs) are very easy to install and use:
1. ALT-F11 brings up the VBE window
2. ALT-IALT-M opens a fresh module
3. paste the stuff in and close the VBE window
If you save the workbook, the UDF will be saved with it.
To remove the UDF:
1. bring up the VBE window as above
2. clear the code out
3. close the VBE window
To learn more about macros in general, see:
http://www.mvps.org/dmcritchie/excel/getstarted.htm
or
http://www.cpearson.com/excel/Writin...ionsInVBA.aspx
for specifics on UDFs
B.T.W.
You must enable macros for this method to work. If you see the dreaded #NAME?
either macros are disabled or the UDFs are not in a standard module
Bookmarks