Robert
Robert

Reputation: 541

'File Not Found: VBA6.dll' Error - Strange Behaviour

I am running Windows 8 with Office 2013 (64-Bit). I am trying to continue developments in VBA in Excel that I started with Office 2010 (32-Bit). I am aware of the necessary 64-Bit alterations however I am receiving confusing configuration errors.

Here is the problem:

It's as if Excel is getting its references confused but every time I check them (on good or bad files) they are always exactly the same.

Note:

What should I do to troubleshoot this problem?

Anything to cure me of my confusion is much appreciated,

Best regards

EDIT: I almost forgot to mention;

EDIT 2:

The problem is not yet resolved. I hope the downvote will not hinder my chances of an answer.

Upvotes: 5

Views: 10892

Answers (1)

Robert
Robert

Reputation: 541

The error was caused during Office 2013 (64-bit) installation. The VBA7 DLL was not registered correctly so I had to open regedit and manually input the correct filepath in both

  • HKEY_CLASSES_ROOT\TypeLib{000204EF-0000-0000-C000-000000000046}\
    • 6.0\9\win32
    • 4.2\9\win32

Replacing the 'C:\Windows\SysWOW64\msvbvm60.dll' data value (mentioned in the question) for Visual Basic for Applications to the VBA7 DLL filepath. Which on my system is:

  • C:\Program Files\Common Files\Microsoft Shared\VBA\VBA7.1\VBE7.dll

All files now work; I hope this solves the problem for anyone else in the future.

Upvotes: 7

Related Questions