Hi Kevin, thanks a lot for your help! Using the CComBstr simplified and solved the issue. Tim -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://list.isis.vanderbilt.edu/pipermail/great-users/attachments/20150716/282c1c03/attachment.html>