View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] leonard522@aol.com is offline
external usenet poster
 
Posts: 8
Default Unable to set DisplayAlerts property

Hi,
I am writing an Excel automation program using C++ and MFC. I am
setting several properties for the Application class and most are
working. However, the DisplayAlerts property is giving me an error.

If I step through in the debugger, it works fine. But when I run it, I
get the message "Unable to set the Display Alerts property of the
Application class".

Any ideas???

Here is a code snipet:

//Then get the worksheet's application.
app = wb.GetApplication();
app.SetDisplayFormulaBar(FALSE); // Works Fine
app.SetDisplayAlerts(FALSE); //Gives error message

Thanks so much!!
Jennifer