Good afternoon achin

When in doubt about a variable, get Excel to tell you!
MsgBox TypeName(LValue)
You need to declare it as a string.

HTH

DominicB