I am creating a VBA in excel to download the attachment in SAP. The macro will run FB03 in SAP and double-click on the statement to open the attachment. However SAP requires a password to open certain types of documents like vendor invoice. A message box asking for a password will pop up when the macro tries to open these documents. I want the VBA to stop, alert users to enter the password to SAP popup message box before continue the VBA. Please help.