I have several legacy Excel files with a lot of stored procedure calls and db connections that are all done the same way with recordsets ...
since there is no try-catch-finally concept in VBA, as in .NET, is there any best practice to apply a slightly more reliable level of data access for this? I would like to have a good example of how to open a connection, execute a stored procedure that requires some parameters, and then close the connection and release resources in any case of success or error.
source share