I need to reuse the values of a and b later on in the sub, hence my
problems with the value of a changing.
do you declared the argument with the keyword ByVal?
Function functwo(ByVal pos As Integer, text As String) As Integer
--
Regards
Melanie Breden
- Microsoft MVP für Excel -
http://excel.codebooks.de (Das Excel-VBA Codebook)