An error occurred while loading 'form_name', do you want to continue loading..

Started by mc13, August 12, 2010, 09:14:45 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.



I have been developing a VBA project in Visio 2007. The Visio file has somehow become corrupted and when I attempt to open the VSD file I get a dialog box error saying  "An error occurred while loading 'form_name', do you want to continue loading the project".

If I continue to load the file I can view the Visio diagram, but I get a further error complaining that VBA is not installed if I try and open the Visual Basic Editor within Visio to view the VBA code. My assumption is that one of the forms in my VBA project is corrupt which is stopping me from viewing the rest of the code within the Visual Basic Editor in Visio.

My goal is to try and recover as much of the VBA code as I can. I have saved the Visio file as an XML document so that I can get hold of the VBA code between the <VBProjectData> XML tags. The VBA project data is stored as MIME encoded data, but when I decode the data block the resulting file is not human readable (i.e. I can't view the VBA code). Does anyone have any ideas on how I can recover the VBA code? I have tried loading the VSD file into Visio 2010 but I get the same error.

Thanks very much in advance for any help!