How can I capture the entire text of a VBA error message and save it into a string variable?
Note that I would like to capture the error message not only when it is a native VBA error message but also when it is a SQL error message that gets kicked through to VBA. (E.g. when the VBA connects to a SQL Server database and executes a number of SQL commands against the database.)
Note that I would like to capture the error message not only when it is a native VBA error message but also when it is a SQL error message that gets kicked through to VBA. (E.g. when the VBA connects to a SQL Server database and executes a number of SQL commands against the database.)