In your visual basic editor, right click on your project in the project
pane and select Insert - Module.
Write your function code in this new module.
--
C01d
------------------------------------------------------------------------
C01d's Profile:
http://www.excelforum.com/member.php...o&userid=34422
View this thread:
http://www.excelforum.com/showthread...hreadid=544145