Unalbe to set Display Alerts property MFC

J

Jen

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!!
Jen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top