Excel VBA Run-time Error '32809' - Trying to Understand it

后端 未结 18 867
长发绾君心
长发绾君心 2020-12-03 14:25

A colleague at work made some changes to one of our macro workbooks and now on my PC only I receive the dreaded Run-time Error \'32809\' when I attempt to run it. This lates

相关标签:
18条回答
  • 2020-12-03 14:56

    I got this problem after adding a combobox with VBA-code in a particular sheet. Testing the code etc was no problem at all, until I opened the sheet again. Stackoverflow and Microsoft comes with many work arounds, but no real solution. I use excel 2010 (dutch version) with W10 (upgraded from W7). I think the problem is in Excel 2010. In my case, I got an error on the line to unprotect a sheet by VBA, in a module which wasn't changed for a long time.

    Ok, this is how it is in my opinion: There was a security issue in FM20.DLL, for whic MS had an update in Q1 2015. This update installs a new FM20.DLL, however the language packages (FM20NLD.DLL and FM20ENU.DLL) were not updated. Possibly, if you don't use a language pack, you don't have this error. In my opinion, the language parts should have been updated as well (but there is no update available)

    Ok, deleting the .exd-files works for a moment. This is a temporary work around. MS doesn't has a real solution, but recompiling the code 'solves' the problem.

    That is why some people said: 'Add a comment and the problem is solved'. Yes, adding a comment forces a recompilation.

    I agree, this is still a work-around, but not a temporary work around. So: 1. check in which part of the VBA-code the error exists 2. add a comment by which a recompile is forced. 3. save the project again

    that's all

    0 讨论(0)
  • 2020-12-03 14:57

    I have removed all ActiveX controls from sheet and now it works smoothly without any error messages. That's my solution.

    0 讨论(0)
  • 2020-12-03 14:58

    It seems that 32809 is a general error message. After struggling for some time, I found that I had not clicked on the "Enable Macros" security button at the below the workbook ribbon. Once I did this, everything worked fine.

    0 讨论(0)
  • 2020-12-03 15:00

    I have encountered similar (nearly unexplainable) behavior

    Found a reference to deleting .exd files under the directory C:\Users\username\AppData\Local\Temp Located one in each of the directory Excel8.0 and VBE. Typical name is MSForms.exd

    Google "Excel exd" or "KB 2553154" From my perspective, it is a completely unacceptable situation which has been there for at least a month now.

    0 讨论(0)
  • 2020-12-03 15:01

    I have found the solution. Just download the following Office update: https://support.microsoft.com/en-us/kb/2920754

    Choose between 32-bit or 64-bit and install.

    Worked for me, hope it works for you.

    Regards

    0 讨论(0)
  • 2020-12-03 15:02

    I have the same problem and found that this is the problem of Microsoft vulnerabilities.

    It works for me when I install these update patches. You can find these patches on www.microsoft.com .

    1. If your office 2010 version is SP1, you need download and install office SP2 pack first. Update patch name is KB2687455.

    2. Install update patch KB2965240.

      This security update resolves vulnerabilities in Microsoft Office that could allow remote code execution if an attacker convinces a user to open or preview a specially crafted Microsoft Excel workbook in an affected version of Office. An attacker who successfully exploited the vulnerabilities could gain the same user rights as the current user.

    3. Install update patch KB2553154.

      A security vulnerability exists in Microsoft Office 2010 32-Bit Edition that could allow arbitrary code to run when a maliciously modified file is opened. This update resolves that vulnerability.

    0 讨论(0)
提交回复
热议问题