When I try to use data analysis add in, my excel shows "automation error exception occurred" and crashes.

Joon Sunwoo 0 Reputation points
2024-10-27T10:26:12.8966667+00:00

When I click Data analysis, i get the error "Microsoft Visual Basic for Applications Automation error Exception occurred." and then it crashes. I have no idea how to fix, I've tried clicking the 1.0 check box alt f11 and I have uninstalled and reinstalled Microsoft excel but it didn't change anything.

Anyone know how to fix this?

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,961 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jiajing Hua-MFST 10,645 Reputation points Microsoft Vendor
    2024-10-28T05:24:34.3466667+00:00

    Hi @Joon Sunwoo

    Did you enable Analysis ToolPak and Analysis ToolPak - VBA?

    User's image

    It is recommended to uncheck both options > Click "OK" > Close Excel, reopen it > Check only the box of "Analysis ToolPak"add-in, click "OK" to test.

    I suggest you Open the VBA Editor, go to Tools > References, and ensure all selected references are available, no referenced libraries are missing. I also suggest you check macro security settings and ensure macros are enabled.

    User's image

    Then, please search and go to Event Viewer > Windows Logs > Applications, check whether there is any record about this Excel crashing.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.