Try commenting out all the code between OpenFile and CloseFile to see if it's this which is causing the hang. If so, you could add the file to an area rather than using OpenFile, to see if that helps.
Thank you for your post Lilian. I see this post has been submitted twice and the second post is being addressed so I will close this duplicate.
Thank you. ...