Press CTRL+SHIFT+ESC and make sure there is no unwanted Excel application running from your crashes. Better still reboot and try again.
You don't need the backslashes here as the BrowseforFolder function includes them
strPath = BrowseForFolder() Debug.Print strPath & "\" & sName oMail.SaveAs strPath & "\" & sName, olMSGThe last line of the Function is End Function - not EndstrPath = BrowseForFolder() If strPath = "" then Exit Sub Debug.Print strPath & sName oMail.SaveAs strPath & sName, olMSG