[V8i-VBA] OpenDesignFileForProgram

Hello,

I am using vba code in Excel 2007 to open a dgn file and read some Tag values. Everything is working ok when I use the OpenDesignFile Function, but when I use the OpenDesignFileForProgram Function I get the following error:

Can someone explain to me why it fails when I use the OpenDesignFileForProgram Function?

This is how I am calling the OpenDesignFileForProgram Function in my code:

Set oDgn = oMSApp.OpenDesignFileForProgram(oFolder & "\" & oFile.Name, True)

Thank you,

Gerald Piotrowski