November 2010
M T W T F S S
« Oct   Dec »
1234567
891011121314
15161718192021
22232425262728
2930  
Archives

File not found: VBA6.dll error occurs or GP crashes

Beth Gardner - Click for blog homepageThis is a follow up to my previous post on the VBA6.dll not found error (for 64-bit). I have found this can occur on 32-bit computers and Microsoft Dynamics GP 10.0 and GP 2010.

Important: This post contains information about how to modify the registry. Make sure that you back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base (KB) Article:

I have found that the issue is because the 4.0 registry key is missing.  This is created with earlier versions of Microsoft Office and Microsoft Dynamics GP.

To resolve this error, you need to add the 4.0 registry key. 

Here are the steps:

  1. Make a full backup of the system registry.
     
  2. Export all modifications to a .package file from Microsoft Dynamics GP under Tools | Customize | Customization Maintenance.
     
  3. Create a .reg file that contained the following in Notepad:
     
    Windows Registry Editor Version 5.00
     
    HKEY_CLASSES_ROOTTypeLib00204EF-0000-0000-C000-0000000000464.0
     
    @=”Visual Basic For Applications”
     
    HKEY_CLASSES_ROOTTypeLib00204EF-0000-0000-C000-0000000000464.09 
     
    HKEY_CLASSES_ROOTTypeLib00204EF-0000-0000-C000-0000000000464.09win32 
     
    @=”C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6.DLL”
     
    HKEY_CLASSES_ROOTTypeLib00204EF-0000-0000-C000-0000000000464.0FLAGS 
     
    @=”0″
     
    HKEY_CLASSES_ROOTTypeLib00204EF-0000-0000-C000-0000000000464.0HELPDIR 
     
    @=”C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\”
     
  4. Next, double-clicked the .reg file, so it was added to the system registry. 
     
  5. The HKEY_CLASSES_ROOTTypeLib00204EF-0000-0000-C000-0000000000464.1 key should point to the VBE7.dll file.
     
  6. Next delete the .vba files that were 4kb and renamed the .vba files that were over 4kb in the Microsoft Dynamics GP code folder.
     
  7. Start Microsoft Dynamics GP.  You should not receive any errors.
     
  8. Import the .package file.  Verify the code works and the error no longer occurs.

I have had a few customers state that they had to unregister the msvbvm60.dll.  But I did not run across that with the customers I have streamed in with.

Beth Gardner

Support Escalation Engineer
Microsoft Dynamics GP Developer Support

16-Nov-2010: Added link to previous article.

Read more:
File not found: VBA6.dll error occurs or GP crashes

VN:F [1.9.17_1161]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.17_1161]
Rating: +1 (from 1 vote)
  • Tony

    ABSOLUTELY perfect!!!! I don’t know how long it took you to figure that one out but Thank you!!!!

    VA:F [1.9.17_1161]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
  • Larry Carrethers

    I installed GP on a new users machine, and when she tries to print out history reports they get this error. The report does have VBA behind it but so does some of the others and they work fine.
    This only happens on this machine. What should I do in this instance?

    VA:F [1.9.17_1161]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)