Surely this line is wrong:
IFLEFT$(r$,1)="""":IF RIGHT$(r$,1)="""":r$=MID$(r$,r$,LENr$-2)
The MID$ call should be r$=MID$(r$,2,LENr$-2) - shouldn't it?
Kranser
Yes, you're right.
JGH