excel vba creates error message after upgrade to windows 11

Renée Sulaweyo 0 Reputation points
2025-01-08T10:13:41.7233333+00:00

after a window 10 to win11 upgrade excel vba blocks access to oracle database. the vba runs without problems on windows 10.

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
2,107 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,530 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Emi Zhang-MSFT 27,391 Reputation points Microsoft Vendor
    2025-01-23T07:55:00.68+00:00

    Hi,

    It seems that after upgrading from Windows 10 to Windows 11, your Excel VBA is encountering issues when trying to access the Oracle database. This problem wasn't present when you were using Windows 10. I suggest you try these methods to help you troubleshoot this problem:

    1. Check for Error Messages: Identify the specific error message that Excel VBA is generating. This can provide clues about what might be going wrong.
    2. ODBC Driver Issues: Sometimes, the issue might be with the Oracle ODBC driver rather than Excel itself. Ensure that you have the latest version of the Oracle ODBC driver installed.
    3. Macro Settings: Verify that the macro settings in Excel are correctly configured. Go to File > Options > Trust Center > Trust Center Settings > Macro Settings and ensure that the box for "Trust access to the VBA project object model" is checked.
    4. Reinstall or Update Excel: If the problem persists, consider reinstalling or updating Excel to ensure that all components are correctly installed and up to date.

    Just checking in to see if the information was helpful. Please let us know if you would like further assistance.


    If the response is helpful, please click "Accept Answer" and upvote it.

    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.

    0 comments No comments

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.