I have a spreadsheet with VBA that has a reference to the ADO 2.0 library. The VBA opens a connection to a SQL Server database, executes a command, and stores it in a recordset.
If the code is executed and saved on a physical Windows 7/Excel 2010 machine, and then opened on a virtual Windows 7/Excel 2010 machine, the code will not run.
The error is "Error occured while retrieving data from the database (Error #: 430 - Error Description: Class does not support Automation or does not support expected interface)"
However, if the ADO reference is changed from 2.0 to 2.x, saved, and then changed back to 2.0, it will work.
Any possible reason a physical machine would cause this issue and a virtual would not?