Are you making this up as you go along?
Are you using the code editor to write the code, or something else?
There is no Variable type in the list when typing Dim strAttach as ...., Variant yes, but not Variable. Well not in 2007 ?
I would have thought you would need String anyway.