Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7669881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:41:44+00:00 2026-05-31T15:41:44+00:00

I am intermittently getting the following exception: It does not occur if I step

  • 0

I am intermittently getting the following exception:
enter image description here

It does not occur if I step through the code and I’m having trouble working out how to reproduce it reliably. The inner exception is null.

I have search the web and found a C++ MFC programmer cam across the same thing but no answers:
http://www.excelforum.com/excel-programming/555121-unable-to-set-displayalerts-property.html

I also have read up on another possible cause unfortunately is unrelated as its to do with opening a spreadsheet via IE.

Can someone please shed light on what is going on here? I would much
prefer to know the root cause and code around it rather than using a
try-catch. Thanks for any advice.

ps I didn’t write this code (there would be a bool parameter for true false if I did), I’m just new to this project and want to clean it up a bit and make it more robust.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T15:41:45+00:00Added an answer on May 31, 2026 at 3:41 pm

    You need to add exception handling to capture and report the ErrorCode, as suggested in the troubleshooting tips, then determine what Excel is complaining about.

    This could be caused by a number of different issues, but without the ErrorCode, you are flying in the dark. Once you figure out the ErrorCode, if it is innocuous you could just trap the exception and ignore it.

    The hex error code is returned in the ErrorCode property of the COMException that is thrown in this case. I’m not sure if the message will be in that list you provided, but it certainly doesn’t hurt to look there.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having trouble getting a Java Applet to communicate with the Javascript code on
I’m getting an intermittent false negative on the following line of code in an
We've been having some issues with our MySQL server intermittently. It keeps throwing out
I am getting an intermittent out of memory exception at this statement: return ms.ToArray();
I am getting the following error intermittently on my server: **Proxy Error** The proxy
I am intermittently getting an System.InvalidCastException: Specified cast is not valid. error in my
An application in the field is getting this message intermittently: I am not able
Folks -- I am getting the following exception and can't explain why. The number
I've been getting these errors intermittently from sending email from my django app. I
This is an intermittent exception that occurs intermittently in Umbraco 3.0.4 running in IIS

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.