Unfortunately, for the VBA environment, there is no automation API for this. I got it 100% unattended (so that I could use it in automatic assemblies) using the P / Invoking Win32 API to capture the correct window handles and simulate keyboard shortcuts in these windows, highlight the correct certificate, etc. Even if it worked with detecting and recording compilation errors (grab the error dialog box and dig up the label control text). It took me a few days of hacking to get it to work reliably, but it is possible, and actually not even that difficult.
I would be happy to publish it, but my previous employer owns the code .: (
source
share